Save graph / plot progressively

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by