<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861</link>
    <title>MATLAB Central Newsreader - Read variables from  Workspace</title>
    <description>Feed for thread: Read variables from  Workspace</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 18 Apr 2008 18:13:01 -0400</pubDate>
      <title>Read variables from  Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427599</link>
      <author>Rami AbouSleiman</author>
      <description>HELP PLEASE&lt;br&gt;
Is it possible to have a function that reads specific values&lt;br&gt;
from the workspace, even though these values are always&lt;br&gt;
changing?&lt;br&gt;
And when these values change the function updates its values&lt;br&gt;
also&lt;br&gt;
Thank you &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 18:54:51 -0400</pubDate>
      <title>Re: Read variables from Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427604</link>
      <author>plim</author>
      <description>what do you mean with workspace?&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 19:14:02 -0400</pubDate>
      <title>Re: Read variables from Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427607</link>
      <author>Rami AbouSleiman</author>
      <description>plim &amp;lt;manuela.cotrim@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;1e392b5f-2ba0-485f-b913-6d2b2fb6d2f3@k37g2000hsf.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; what do you mean with workspace?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Are you serious?&lt;br&gt;
check your matlab main window, its a small box that has all&lt;br&gt;
your variables in your current directory.&lt;br&gt;
for example you might declare x=5; in your code you will see&lt;br&gt;
it as x=5 in your workspace and if you type x in your&lt;br&gt;
command window you will get 5&lt;br&gt;
i dont know why i am telling you this if you dont know&lt;br&gt;
workspace how would you help me&lt;br&gt;
&amp;nbsp;&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 19:36:02 -0400</pubDate>
      <title>Read variables from  Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427612</link>
      <author>Bruno Luong</author>
      <description>"Rami AbouSleiman" &amp;lt;rdabousl@oakland.edu&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fuaobd$hbu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; HELP PLEASE&lt;br&gt;
&amp;gt; Is it possible to have a function that reads specific values&lt;br&gt;
&amp;gt; from the workspace, even though these values are always&lt;br&gt;
&amp;gt; changing?&lt;br&gt;
&amp;gt; And when these values change the function updates its values&lt;br&gt;
&amp;gt; also&lt;br&gt;
&lt;br&gt;
You could declare the variable as "global".&lt;br&gt;
&lt;br&gt;
Anyway, global variable and accessing/sharing variables&lt;br&gt;
between different workspaces is the last thing I would&lt;br&gt;
recommend to do.&lt;br&gt;
&lt;br&gt;
Out of curious, what changes the variable that you want to&lt;br&gt;
monitor? An acquisition board? A timer?&lt;br&gt;
&lt;br&gt;
Bruno&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 20:28:02 -0400</pubDate>
      <title>Read variables from  Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427622</link>
      <author>Rami AbouSleiman</author>
      <description>"Bruno Luong" &amp;lt;b.luong@fogale.fr&amp;gt; wrote in message &amp;lt;fuat72&lt;br&gt;
$ll4$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Rami AbouSleiman" &amp;lt;rdabousl@oakland.edu&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fuaobd$hbu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; HELP PLEASE&lt;br&gt;
&amp;gt; &amp;gt; Is it possible to have a function that reads specific &lt;br&gt;
values&lt;br&gt;
&amp;gt; &amp;gt; from the workspace, even though these values are always&lt;br&gt;
&amp;gt; &amp;gt; changing?&lt;br&gt;
&amp;gt; &amp;gt; And when these values change the function updates its &lt;br&gt;
values&lt;br&gt;
&amp;gt; &amp;gt; also&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You could declare the variable as "global".&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Anyway, global variable and accessing/sharing variables&lt;br&gt;
&amp;gt; between different workspaces is the last thing I would&lt;br&gt;
&amp;gt; recommend to do.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Out of curious, what changes the variable that you want to&lt;br&gt;
&amp;gt; monitor? An acquisition board? A timer?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Bruno&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks Bruno but i declared already as global thats why the &lt;br&gt;
workspcae is changing but not the function.&lt;br&gt;
Its the mouse movement on a figure (variables changing)&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 18 Apr 2008 21:29:02 -0400</pubDate>
      <title>Read variables from  Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427640</link>
      <author>Bruno Luong</author>
      <description>"Rami AbouSleiman" &amp;lt;rdabousl@oakland.edu&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fub08i$nek$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;gt; Thanks Bruno but i declared already as global thats why the &lt;br&gt;
&amp;gt; workspcae is changing but not the function.&lt;br&gt;
&lt;br&gt;
I'm not sure I understand:&lt;br&gt;
&lt;br&gt;
when a variable is declared as global, it stores in a space&lt;br&gt;
that is common for all workspaces (WS).&lt;br&gt;
&lt;br&gt;
Each function has they own WS. In order to access to this&lt;br&gt;
variable, the variable should be declared as global in the&lt;br&gt;
function, otherwise the homonym variable (same name) is&lt;br&gt;
created in a local workspace.&lt;br&gt;
&lt;br&gt;
You could also use "evalin" and "assignin" for manipulation&lt;br&gt;
variables at different WS.&lt;br&gt;
&lt;br&gt;
For mouse position, check out also this:&lt;br&gt;
&amp;nbsp;get(0, 'PointerLocation')&lt;br&gt;
&lt;br&gt;
Bruno&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 19 Apr 2008 07:40:46 -0400</pubDate>
      <title>Re: Read variables from  Workspace</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167861#427668</link>
      <author>Ralph Schleicher</author>
      <description>"Rami AbouSleiman" &amp;lt;rdabousl@oakland.edu&amp;gt; writes:&lt;br&gt;
&lt;br&gt;
&amp;gt; Is it possible to have a function that reads specific values&lt;br&gt;
&amp;gt; from the workspace, even though these values are always&lt;br&gt;
&amp;gt; changing?&lt;br&gt;
&amp;gt; And when these values change the function updates its values&lt;br&gt;
&amp;gt; also&lt;br&gt;
&lt;br&gt;
You can use 'evalin' for reading from and 'assignin' for writing to&lt;br&gt;
the base workspace.  For example,&lt;br&gt;
&lt;br&gt;
function foo&lt;br&gt;
&amp;nbsp;&amp;nbsp;x = evalin('base', 'x');&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Ralph Schleicher, Freelance Engineer    &lt;a href="http://ralph-schleicher.de"&gt;http://ralph-schleicher.de&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Development * Consulting * Training&lt;br&gt;
Mathematical Modeling and Simulation&lt;br&gt;
Software Tools&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
