"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!