Azzera filtri
Azzera filtri

Save graph / plot progressively

3 visualizzazioni (ultimi 30 giorni)
Nicola
Nicola il 20 Gen 2014
Risposto: Nicola il 20 Gen 2014
Good evening, i need help, i want that my code saves plot in progressive mode. I thought to use saveas function in a code like this
f = figure('Visible', 'off');
plot(x,y,'r');
saveas(f,'figure_',num2str(numberofgraph,'%d'),'.jpeg');
but it doesn't work, it says "too many imput arguments"(i think it doesn't like
num2str(numberofgraph,'%d'),
How can i also decide where it has to save it? Thanks for your help

Risposta accettata

Walter Roberson
Walter Roberson il 20 Gen 2014
saveas(f,['figure_',num2str(numberofgraph,'%d'),'.jpeg']);

Più risposte (1)

Nicola
Nicola il 20 Gen 2014
Thanks very much Mr Walter Roberson. Is 'savesas' the best function or there is one which gives me a better quality of images?
Thanks

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by