Thread Subject: evalin() problem - won't run workspace m-file from within a GUI callback

Subject: evalin() problem - won't run workspace m-file from within a GUI callback

From: Thiago

Date: 17 Jan, 2009 00:54:01

Message: 1 of 2

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).

Subject: evalin() problem - won't run workspace m-file from within a GUI callback

From: Thiago

Date: 17 Jan, 2009 02:02:03

Message: 2 of 2

Problem resolved. I forgot to do the same in the actual button callback, so obviously the evalin line would only happen in a "ButtonDown" event. I'm sorry, my bad.

Regards

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com