Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

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
Increment figure number in 3 dimensional loop
Posted: Jan 23, 2013 11:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


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?



for k = 1:2;
for j = 1:8;

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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.