From: Kevin on 23 Feb 2010 08:17 i am a relative newbie to MatLAB, and I am trying to generate multiple unique plots from inside a loop and have the output sent to a report (using the Publish Tool in the Editor). (MatLAB 7.1R14) For example: for index=1:5 plot(data(index)); end However, in this form the report ends up with only one plot (the last one generated). In a linear flow, I would usually separate sections with %% to get a new section and plot, but this seems to break the publish tool when it's inside a loop. How can I accomplish this?
From: Kevin on 23 Feb 2010 08:22 I thought of a new term to search by and found that the "figure" command does what I need.
From: forkandwait w on 23 Feb 2010 08:35 > For example: > > for index=1:5 > plot(data(index)); > end This should be for index=1:6 figure plot (data(index)) end "figure" creates a new window.
|
Pages: 1 Prev: Displaying colors in a figure Next: Publish plots from inside loop |