<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242582</link>
    <title>MATLAB Central Newsreader - evalin() problem - won't run workspace m-file from within a GUI callback</title>
    <description>Feed for thread: evalin() problem - won't run workspace m-file from within a GUI callback</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by 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>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 17 Jan 2009 00:54:01 -0500</pubDate>
      <title>evalin() problem - won't run workspace m-file from within a GUI callback</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242582#622207</link>
      <author>Thiago </author>
      <description>Folks,&lt;br&gt;
&lt;br&gt;
I'm puzzled by this problem: when I use the command&lt;br&gt;
&lt;br&gt;
evalin('base','file_name');&lt;br&gt;
&lt;br&gt;
to run &quot;file_name.m&quot; from within the &quot;OK button&quot; ButtonDownFcn callback of a GUI, nothing happens! The interesting part of the story is that I can do exactly that in other GUI's I already have. By the way, all of these files are in the same folder. Any ideas?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;br&gt;
PS: I have Matlab 7 (R14).</description>
    </item>
    <item>
      <pubDate>Sat, 17 Jan 2009 02:02:03 -0500</pubDate>
      <title>Re: evalin() problem - won't run workspace m-file from within a GUI callback</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/242582#622212</link>
      <author>Thiago </author>
      <description>Problem resolved. I forgot to do the same in the actual button callback, so obviously the evalin line would only happen in a &quot;ButtonDown&quot; event. I'm sorry, my bad.  &lt;br&gt;
&lt;br&gt;
Regards</description>
    </item>
  </channel>
</rss>

