Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Running a function in the background
Date: Mon, 28 Sep 2009 10:16:43 -0400
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <h9qgfl$a89$1@fred.mathworks.com>
References: <f48e68c5-54f4-41b8-9843-0d8c995366b0@i4g2000prm.googlegroups.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1254147381 10505 172.31.44.65 (28 Sep 2009 14:16:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 28 Sep 2009 14:16:21 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:573374



"swgillan" <swgillan@gmail.com> wrote in message 
news:f48e68c5-54f4-41b8-9843-0d8c995366b0@i4g2000prm.googlegroups.com...
>I was recently reviewing a webinar on large datasets, and the person
> running the webinar ran a function called WriteMalloc (or something
> like that).
>
> Essentially what it did was it was a plot window that updated every
> second with the amount of memory used by the matlab session.
>
> I am looking at writing something similar, but I have never seen a
> figure get updated and run parallel with inputting in the command
> window. Does anyone know how this might be done?
>
> This isn't vital, but it was one of those things that I have never
> seen before, and think it could be really handy.

I don't know specifically what was being used in the webinar you described, 
but perhaps that function was using a TIMER object to perform the updates, 
or it set the *DataSource properties of a line and used REFRESHDATA to force 
it to update?

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ