Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Increment figure number in 3 dimensional loop
Posted:
Jan 23, 2013 12:17 PM
|
|
"Phil Roberts" <harsh_classic@yahoo.co.uk> wrote in message news:kdp2hs$a67$1@newscl01ah.mathworks.com... > Hi, > > I have a 3 dimensional loop (as per the code below). However, when I plot > the first 8 figures of the 1st "k" loop, the 8 figures plotted with the > second "k" loop overwrite the original 8 figures from the 1st "k" loop. > > How can I increment the figures so that 16 are shown i.e. 8 from the 1st > "k" loop and 8 from the 2nd "k" loop?
Your figure number needs to depend upon both j AND k. If you don't care about having figures 1-16 you could just use 8*k+j to open figures 9 through 24.
Alternately, do you need sixteen figures? You may be interested in the SUBPLOT function, which allows you to place multiple axes on one figure window.
-- Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
|
|
|