dpb <firstname.lastname@example.org> wrote in message <email@example.com>... > 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' > > --
Thanks for this. It works nicely.
How would I iimplement a subplot? Where abouts in the code would I place say subplot(4,2,k) with k being one of the 16 figures?