Source:
Matlab Help:
Startup Options
Options:
/c licensefile
Set LM_LICENSE_FILE to licensefile.
/logfile logfilename
Automatically write output from MATLAB to the specified log file.
/minimize
Start MATLAB with the desktop minimized.
/nosplash
Start MATLAB without displaying the MATLAB splash screen.
/r MATLAB_file
Automatically run the specified MATLAB M-file, either commands supplied with MATLAB or your own M-files, immediately after MATLAB starts.
for options use '/' in Windows; use '-' in UNIX.
Example:
matlab /r myroutine.m % Call a script
matlab -r "plot( sin([1:10]) )" % Call a function with argument
NOTES:
matlab won't automatically close after running the script/function. Better to put "exit;" at the end of the script or after the funtion like
matlab -r "plot( sin([1:10]) ); exit;"
No comments:
Post a Comment