Plotting from function per for-loop iteration
1 view (last 30 days)
I need to produce calculations and plots for a series of parameters. I have read that producing a new plot per for-loop iteration is not advised, but that is what I need. For example, I have the following function and code:
x = input_test.x;
y = input_test.y;
a = [1,2,3];
b = [1,2,4];
for j = 1:3
I want to call the function and output the calculation and plots for each iteration of the for-loop (ie: 9 calculations of x+y & 18 different plots). Right now this code can produce the 9 calculations of x+y but I am only getting the 2 plots of the last iteration at the bottom of the output window.
Any suggestions or other methods on how to produce a series of individual calculations and plots?