| MATLAB Central > MATLAB Newsreader > M files must be run twice for changes to take e... |
|
|
|
Subject: M files must be run twice for changes to take effect on linux system From: Tim Date: 20 Sep, 2007 20:28:24 Message: 1 of 8 |
|
Weird question. Running Matlab r2006a on a 64bit linux |
|
Subject: M files must be run twice for changes to take effect on linux system From: Dan Haeg Date: 20 Sep, 2007 22:38:07 Message: 2 of 8 |
|
"Tim " <timtjanssen@yahoo.com> wrote in message |
|
Subject: M files must be run twice for changes to take effect on linux system From: Malcolm Lidierth Date: 21 Sep, 2007 12:36:41 Message: 3 of 8 |
|
Have you tried: |
|
Subject: M files must be run twice for changes to take effect on linux From: Gordon Weast Date: 21 Sep, 2007 13:43:53 Message: 4 of 8 |
|
Tim, |
|
Subject: M files must be run twice for changes to take effect on linux From: Tim Date: 1 Dec, 2007 05:23:29 Message: 5 of 8 |
|
Thanks all for the input. Sorry for not getting back sooner. |
|
Subject: M files must be run twice for changes to take effect on linux From: Seth Date: 2 Mar, 2009 15:09:01 Message: 6 of 8 |
|
I had exactly this same problem (R2008b on mac), where I wrote a .m file as output from a script, and then ran it both using the "run" command and by opening it up in the editor and choosing "Run...". The only way it would recognize the change was to either modify the .m script in the editor (even if the "new" file was written), or to use the "clear functions" command. |
|
Subject: M files must be run twice for changes to take effect on linux From: Steven Lord Date: 2 Mar, 2009 16:08:05 Message: 7 of 8 |
|
|
|
Subject: M files must be run twice for changes to take effect on linux From: Seth Date: 30 Mar, 2009 03:53:01 Message: 8 of 8 |
|
No, I saved it in a local directory, outside of any of the MATLAB (or my personal) paths. The exact path was something like '/Users/seth/_code/imc/suolson.m'; the file essentially creates a bunch of variables in the local workspace. Calling |
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.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.
Contact us at files@mathworks.com