Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: evalin() problem - won't run workspace m-file from within a GUI callback
Date: Sat, 17 Jan 2009 00:54:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gkra79$rke$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1232153641 28302 172.30.248.35 (17 Jan 2009 00:54:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 17 Jan 2009 00:54:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1268168
Xref: news.mathworks.com comp.soft-sys.matlab:512163


Folks,

I'm puzzled by this problem: when I use the command

evalin('base','file_name');

to run "file_name.m" from within the "OK button" 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?

Thanks.

PS: I have Matlab 7 (R14).