MATLAB: Numbering Plots

loopsnumbering

Hi,
I have a script that generates a list of plots and outputs it as a pdf.
Now sometimes I have to reorder the plots which means having to re-numbering the figure numbers.
*_Example:
figure(1)
Plot(…….
%%%%%%%%%%%%%%%%%%%%%%
figure(2)
Plot(…….
%%%%%%%%%%%%%%%%%%%%%%
figure(3)
Plot(……. _*
Is there any way round this? using a loop such as
i = i + 1
and then use figure(i) instead?
I can't seem to get it to work
Thanks

Best Answer

answered by walter