How to automatcly save a plot in matlab
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a loop that do plotting. Is there a way instead of manually saving the graph the plots automatically be saved?
0 commentaires
Réponse acceptée
Grzegorz Knor
le 3 Déc 2011
Simple example:
x = linspace(0,1,100);
for k=1:10
stem(x,x/k)
ylim([0 1])
filename = sprintf('pic%i',k);
print('-djpeg', filename, '-r100');
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!