フィルターのクリア

How do I set the default/initial working folder for MATLAB?

158 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2012 年 10 月 11 日
編集済み: MathWorks Support Team 2021 年 2 月 2 日
How do I set the default/initial working folder for MATLAB?

採用された回答

MathWorks Support Team
MathWorks Support Team 2020 年 11 月 18 日
編集済み: MathWorks Support Team 2020 年 12 月 1 日
You can set the initial working folder in MATLAB through the following Preference settings:
1. Open the Preferences window
2. Navigate to the General options
3. Select the option to specify a path to a folder under the Initial working folder options, and enter the desired directory
4. Press Apply and/or OK to save your changes
5. Restart MATLAB to verify the new location is set as expected.
Additional information can be found in the MATLAB documentation:
MATLAB Startup Folder
  2 件のコメント
Explorer
Explorer 2014 年 2 月 9 日
Wow! Method 2 is awesome.
Sandip Kumar
Sandip Kumar 2014 年 8 月 27 日
編集済み: MathWorks Support Team 2021 年 2 月 2 日
Hi Ben,
The startup file should be kept at a writable location and not inside the installation directory. There are many directories in the path of MATLAB. One such folder is <user directory>\Documents\MATLAB
Have the startup file in that location, and then inside the startup.m, you can force MATLAB to start in a desired directory as the article above says.
If you continue seeing the issue, I would recommend contacting Technical support using one of the methods mentioned here: https://www.mathworks.com/support/contact_us.html
Thanks Sandip

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by