Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plotting a real time graph
Date: Fri, 28 Nov 2008 13:23:02 +0000 (UTC)
Organization: Oxford University
Lines: 12
Message-ID: <ggorbl$74f$1@fred.mathworks.com>
References: <12009090.1227870188030.JavaMail.jakarta@nitrogen.mathforum.org> <30213151.1227877210897.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227878582 7311 172.30.248.37 (28 Nov 2008 13:23:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 28 Nov 2008 13:23:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1073021
Xref: news.mathworks.com comp.soft-sys.matlab:503645


In terms of plotting you will find the following functions useful: plot, hold, drawnow.

For example:
>> figure;
>> hold on;
>> for a = 1:1e3
>> plot(rand(1), rand(1), 'r+');
>> drawnow;
>> end

I don't know about serial data, but perhaps you could try setting up a callback function to call the relevant plotting functions.