MATLAB Runtime Startup Options
Set MATLAB Runtime Options
For a standalone executable, set MATLAB® Runtime options by using the mcc
command and specifying the
-R
flag and arguments. For example, specify a log
file.
mcc -e -R '-logfile,bar.txt' -v foo.m
Not all options are available for all compilation targets. For full details, see
mcc
-R
.
Set Multiple Options Using -R
You can specify multiple -R
options. When you specify multiple
-R
options, they are processed from left to right. For
example, specify initialization start and end
messages.
mcc -R '-startmsg,MATLAB Runtime initialized' -R '-completemsg,Initialization complete'