フィルターのクリア

Reset Default Initial Working Directory

6 ビュー (過去 30 日間)
Elijah Rockers
Elijah Rockers 2016 年 11 月 4 日
回答済み: Andoni Medina Murua 2017 年 3 月 14 日
I'm having a strange problem. For some reason my MATLAB is starting in the same working directory every time I open it, instead of the present working directory. I have checked startup.m, and even changed the directory to be something else through the GUI preference dialogue, but no matter what, it always goes to the same specific folder when I start it. When another user SSH into my machine and runs MATLAB, he does not experience this problem. How can I best find out what's going on? Is there a way to debug this?
When I open matlab via terminal, I would like it to start in the PWD.

回答 (1 件)

Andoni Medina Murua
Andoni Medina Murua 2017 年 3 月 14 日
Hi Elijah
Have a look to this link: https://es.mathworks.com/matlabcentral/answers/100821-how-do-i-change-the-directory-that-matlab-is-initially-started-in
I had the same problem than you, but I solved it using this:
"METHOD 2 (only for Windows):
On the PC you can also set the Shortcut properties of the MATLAB icon to specify a 'Start in' directory. To do so, right-click on the MATLAB icon and select 'Properties'. Select the 'Shortcut' tab and place the directory that you wish to have MATLAB start in into the 'Start in' field of the icon's properties."
regards
Andoni

カテゴリ

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