I have 30 experimental trials that I logged on a DAQ and I read these in to MATLAB using xlsread.
I have a plot now where I show all 30 trials on one figure.
What I want to do is create a movie where it shows them plotting one by one.
Really I have a total of 60 line plots (30 inputs and 30 outputs), so it would be great if I could show the input and output for one, then the next, etc.
Right now my code is similar to this:
In_1 = xlsread(filename.xls, #1);
In_2 = xlsread(filename.xls, #2);
...
Out_1 = xlsread(filename.xls, #1);
Out_2 = xlsread(filename.xls, #2);
...
plot(t, In_1,'r')
plot(t, Out_1)
plot(t, In_2,'r')
plot(t, Out_2)
...
I've seen plenty of examples using getframe and movie. This does not help me, because I am plotting DATA. Not a function that is evaluated over a time interval. I am trying to plot 30 trials of data.