Skip to content

Instantly share code, notes, and snippets.

@ctokheim
Last active August 29, 2015 14:10
Show Gist options
  • Save ctokheim/d9beb600863689427464 to your computer and use it in GitHub Desktop.
Save ctokheim/d9beb600863689427464 to your computer and use it in GitHub Desktop.
Matlab tricks

Command Line Running

The following line will run the function and then drop into the interactive matlab shell when finished.

matlab -nodisplay -nojvm -nosplash -nodesktop -r "MyFunc('param1')"

However if you don't want to drop into the matlab shell, then you need to add an exit statement to the end of the command.

matlab -nodisplay -nojvm -nosplash -nodesktop -r "MyFunc('param1');exit;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment