| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Spreadsheet Link EX |
| Contents | Index |
| Learn more about Spreadsheet Link EX |
Worksheet: | MLStartDir(path) |
Macro: | MLStartDir path |
path | Specify the current MATLAB working folder after startup. |
Sets the MATLAB working folder 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 folder.
Note The working folder changes only if you run MATLAB after you run this function. Running this function while MATLAB is running does not change the working folder for the current session. In this case, MATLAB uses the specified folder as the working folder when it is restarted. |
Set the MATLAB working folder to d:\work after startup:
MLStartDir ("d:\work")
If your folder path includes a space, embed the path in single quotation marks within double quotation marks. For example, to set the MATLAB working folder to d:\my work, run the command:
MLStartDir ("'d:\my work'")
![]() | MLShowMatlabErrors | MLUseCellArray | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |