
Other Startup Topics
Other Startup Topics
In this section...
“Error Log Reporter” on page 1-21
“Passing Perl Variables on Startup” on page 1-21
“Startup an d Calling Java from MATLAB” on p a ge 1-22
Error Log Reporter
Upon startup, if MATLAB detects an error log generated by a serious problem
encountered during the previous session, an Error Log Reporte r prom pts
you to e-mail the log to The MathWorks for analysis. Click Send Report
to e-mail the log, or click Help for more information. After sending the
log, a confirmation message appears in the Command Window. For more
information, see “Abnormal Termination” on page 1-24.
Passing Perl Variables on Startup
Yo u can pass Perl variables to MATLAB on startup by using the -r option of
the
matlab function. For example, assume a MATLAB function test that
takes one input variable:
function test(x)
To start MATLAB w ith the function test,usethecommand
matlab -r "test(10)"
On some platforms, you might need to use double quotation marks:
matlab -r "test(10)"
This command starts MATLAB and runs test with the input argument 10.
To pass a Perl variable instead of a constant as the input parameter, follow
these steps.
1 Create a Perl script such as
1-21
Commentaires sur ces manuels