The command works well for the first time I run it (after open vscode) and execute "matlab -nosplash -nodesktop -sd working/directory -r "run('filename');". But for the second time I run it, it is executing run('filename'), and the terminal is giving the following error:
run : The term 'run' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ run('filename')
+ ~~~
+ CategoryInfo : ObjectNotFound: (run:String) [], CommandNot
FoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The command works well for the first time I run it (after open vscode) and execute
"matlab -nosplash -nodesktop -sd working/directory -r "run('filename');"
. But for the second time I run it, it is executingrun('filename')
, and the terminal is giving the following error: