Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Mupad on Mac; exporting graphics to disk

2 Ansichten (letzte 30 Tage)
Wilhelm
Wilhelm am 15 Feb. 2011
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
In Mupad 4 (the old standalone version of Mupad) the following statement exports a graphic to the desktop of my Mac:
myimages:="/Users/administrator/Desktop/": plot(plot::Function2d(x^2,x=-1..1),OutputFile=myimages."image_1.jpg");
The same statement when called from Mupad 5.5 (Matlab 2010b) gives an error:
Error: cannot launch mupad process [vcam::new]
Any suggestions? Regards Wilhelm

Antworten (1)

Martin Knelleken
Martin Knelleken am 16 Feb. 2011
Hi Wilhelm,
I checked
myimages:="/tmp/": plot(plot::Function2d(x^2,x=-1..1),OutputFile=myimages."image_1.jpg");
on my Mac in MATLAB 2010b and it works as expected.
However, if I choose a directory where I don't have write permissions or which doesn't exist I get the same error message as you. E.g. myimages:="/Users/NameOfAnotherUser/":
Aside from the fact that the error message is confusing and unhelpful in this case it seems that you don't have write access to /Users/administrator/Desktop/.
Regards
- Martin

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by