MLStartDir - Specify MATLAB® current working directory after startup

Syntax

Worksheet:

MLStartDir(path)

Macro:

MLStartDir path

path

Specify the current MATLAB working directory after startup.

Description

Sets the MATLAB working directory after startup. This function does not work like the standard Microsoft® Windows® Start In setting, because it does not automatically run startup.m or matlabrc.m in the specified directory.

Examples

Set the MATLAB working directory to d:\work after startup:

MLStartDir ("d:\work")

If your directory path includes a space, embed the path in single quotation marks within double quotation marks. For example, to set the MATLAB working directory to d:\my work, run the command:

MLStartDir ("'d:\my work'")

See Also

MLAutoStart

  


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