Path: news.mathworks.com!not-for-mail
From: "Rami AbouSleiman" <rdabousl@oakland.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Read variables from  Workspace
Date: Fri, 18 Apr 2008 20:28:02 +0000 (UTC)
Organization: Oakland University
Lines: 28
Message-ID: <fub08i$nek$1@fred.mathworks.com>
References: <fuaobd$hbu$1@fred.mathworks.com> <fuat72$ll4$1@fred.mathworks.com>
Reply-To: "Rami AbouSleiman" <rdabousl@oakland.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1208550482 24020 172.30.248.35 (18 Apr 2008 20:28:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 18 Apr 2008 20:28:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1325461
Xref: news.mathworks.com comp.soft-sys.matlab:463964


"Bruno Luong" <b.luong@fogale.fr> wrote in message <fuat72
$ll4$1@fred.mathworks.com>...
> "Rami AbouSleiman" <rdabousl@oakland.edu> wrote in message
> <fuaobd$hbu$1@fred.mathworks.com>...
> > HELP PLEASE
> > Is it possible to have a function that reads specific 
values
> > from the workspace, even though these values are always
> > changing?
> > And when these values change the function updates its 
values
> > also
> 
> You could declare the variable as "global".
> 
> Anyway, global variable and accessing/sharing variables
> between different workspaces is the last thing I would
> recommend to do.
> 
> Out of curious, what changes the variable that you want to
> monitor? An acquisition board? A timer?
> 
> Bruno


Thanks Bruno but i declared already as global thats why the 
workspcae is changing but not the function.
Its the mouse movement on a figure (variables changing)