From: Rik on
"nolwenn Guillemot" <nolwenn.guillemot(a)hotmail.fr> wrote in message <i212je$ir0$1(a)fred.mathworks.com>...
> Hi,
> I want to plot some buffer in a real time loop. The execution time of the loop is directed by my application. First I used "drawnow" to refresh my figure, but some times it takes 20 ms, so longer than my loop. Do you now some ways to plot data faster ?
> Thanks for your help.
> Nolwenn

hope this helps:

y = zeros(200,1);
figure
for i=1:length(y)
% obtain data
y(i) = randn(1);
% plot last point
line(i, y(i), 'linestyle', 'none', 'marker','o')
end
 | 
Pages: 1
Prev: image adaptor kit
Next: Matlab Compiler Runtime