How to automatcly save a plot in matlab
2 views (last 30 days)
Show older comments
khatereh on 3 Dec 2011
I have a loop that do plotting. Is there a way instead of manually saving the graph the plots automatically be saved?
Grzegorz Knor on 3 Dec 2011
x = linspace(0,1,100);
filename = sprintf('pic%i',k);
print('-djpeg', filename, '-r100');
More Answers (0)
Find more on 2-D and 3-D Plots 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!