Thread Subject: realtime plot update

Subject: realtime plot update

From: NickPick

Date: 26 Nov, 2009 01:51:32

Message: 1 of 2

I'd like to update a plot real time as the underlying time series /
vector is changing. Is there any way to do this in matlab?

thanks

Subject: realtime plot update

From: Lothar Schmidt

Date: 26 Nov, 2009 05:49:07

Message: 2 of 2

NickPick schrieb:
> I'd like to update a plot real time as the underlying time series /
> vector is changing. Is there any way to do this in matlab?
>
> thanks

not tested but shows a direction:

x=1:n;
y=rand(1,n);
handle=plot(x,y);

for i=1:5
newy=x+i*n;
newy=randn(1,n);
set(ph,'xdata',newx,'ydata',newy);
drawnow,
end

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com