Other Startup Topics

Error Log Reporter

Upon startup, if the MATLAB® program detects an error log generated by a serious problem encountered during the previous session, an Error Log Reporter prompts 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.

Passing Perl Variables on Startup

You 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 with the function test, use the command

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

     #!/usr/local/bin/perl
     $val = 10; 
     system('matlab -r "test(' . ${val} . ')"');
  2. Invoke the Perl script at the prompt using a Perl interpreter.

For more information, see the matlab (Windows) or matlab (UNIX) reference page.

Startup and Calling Java™ Software from the MATLAB® Program

When the MATLAB program starts, it constructs the class path for Sun Microsystems™ Java™ software using librarypath.txt as well as classpath.txt. If you call Java software from MATLAB, see more about this in The Java™ Class Path and Locating Native Method Libraries in the MATLAB External Interfaces documentation.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS