Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Increment figure number in 3 dimensional loop
Replies:
5
Last Post:
Jan 24, 2013 3:01 AM



dpb
Posts:
9,850
Registered:
6/7/07


Re: Increment figure number in 3 dimensional loop
Posted:
Jan 23, 2013 1:34 PM


On 1/23/2013 11:59 AM, dpb wrote: ...
> A trivial way is to add a counter for the figure... > fig=0; % Initialize > for k = 1:2 > for j = 1:8; > f=f+1; > figure(f) > ... > end > end
Of course, keep the variable name consistent... :)
'f' > 'fig'




