Hi,
I'm very new to matlab and I was trying to display a real time plot of some calculations. I have an N
sized vector and I work with m
(Say N=4m
) values at a time so I want to plot the first m
sized result and then as soon as the second m
values are calculated have them replace the first plot.
My approach was as follows:
for i=1:N,
...
//compute m
...
plot(m);
end;
but it fails to update the plot in every loop and waits for all the loops to finish to plot the data. My question is: Should I use another function instead of plot() or could I add some delay on each loop?
I think there must be a way I'm not aware of for updating the plot instead of re-plotting it every time.