Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Read variables from  Workspace
Date: Fri, 18 Apr 2008 19:36:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 19
Message-ID: <fuat72$ll4$1@fred.mathworks.com>
References: <fuaobd$hbu$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
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 1208547362 22180 172.30.248.37 (18 Apr 2008 19:36:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 18 Apr 2008 19:36:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:463954


"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