Skip to content

Doesn't work when running the command second time #11

@JerryWuZiJie

Description

@JerryWuZiJie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions