"run" behaving weirdly from command window and script
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
Hi all,
I am running into some very strange behaviors using the run command. I have a script file to which I pass some file names file1 = 'c:\genericfilename.m', etc, then within the script file i use run(file1) to execute the script and bring the variables into the current workspace. This works fine most of the time. Sometimes matlab will randomly decide that, without an error thrown using run, the variables inside file1 are not brought into the workspace.
Once I got this error, I started playing in the command window, typing run(file) did not execute the script. Or at least if it did, the variables inside that file did not come into the workspace. Weird thing is that then I tried run ('c:\genericfilename') and it did work, about 6 times, then randomly that also stopped working.
I have no idea what could be causing this issue, anyone have any suggestions or ideas? I tried rebooting matlab, didn't seem to matter.
Thanks!
0 个评论
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!