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