| Spreadsheet Link™ EX | ![]() |
Worksheet: | MLStartDir(path) |
Macro: | MLStartDir path |
path | Specify the current MATLAB working directory after startup. |
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.
Note The working directory changes only if you run MATLAB after you run this function. Running this function while MATLAB is running does not change the working directory for the current session. In this case, MATLAB uses the specified directory as the working directory when it is restarted. |
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'")
![]() | MLShowMatlabErrors | MLUseCellArray | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |