The Math Forum

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.soft-sys.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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 61
Registered: 12/8/08
Re: Increment figure number in 3 dimensional loop
Posted: Jan 23, 2013 12:49 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Steven_Lord" <> wrote in message <kdp5vv$oua$>...
> "Phil Roberts" <> wrote in message
> news:kdp2hs$a67$

> > 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
> To contact Technical Support use the Contact Us link on

Hi Steve,

Thanks for getting back to me.

I would like to understand how I go about opening 16 individual figures (8 from the first "k" loop and 8 from the second "k" loop). Once I have done this I will have a look at the subplot function.

Therefore, how would I go about editing my code?

Thanks in advance,


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.