Contour Plot to Image.jpg
Show older comments
Hello!
I need to know how to save or export a 2D Contour plot into an Image file (preferible with .jpeg extension).
I would like also to be able to specify the output location (the folder where the image will be saved), I have tried with this:
contourf(xx,yy,turbul_interp);
xlabel('AXIS X')
ylabel('AXIS Y')
hgsave('name_of_my_image');
But then it appears the following error message:
??? Error using ==> save
Unable to write file name_of_my_image.fig: permission denied.
Any idea about how to do it?. Thanks!
2 Comments
Geoff Hayes
on 30 Dec 2014
Peter - do you have write permissions in the folder where you are trying to create the file? Try specifying the folder name as well...
Peter
on 30 Dec 2014
Accepted Answer
More Answers (1)
Sean de Wolski
on 30 Dec 2014
0 votes
You need to save it somewhere else or have write-permissions for that directory. You could change the directory settings, or run MATLAB as an admin (on Windows right-click the icon, run as admin).
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!