Where to store my pathdef.m
조회 수: 162 (최근 30일)
이전 댓글 표시
Hi all
I need to do run my project on my University lab which have user privileges and multiuser desktop, definitely I cant set path on C: directory and prompt to save pathdef.m to another destination, so where should I save my pathdef.m? In my project folder? I saw some place said that copy the pathdef.m file into your startup folder, may I know where is startup folder?
Thank you.
댓글 수: 0
채택된 답변
Jan
2011년 11월 30일
The startup folder is the folder, which is active after starting up. So start Matlab and type cd.
댓글 수: 0
추가 답변 (4개)
Nick
2023년 9월 28일
This is a bug in Matlab.
The need to change access right is a bug and not intended.
Getting admin rights is for users in companies not always possible.
Getting help from IT is for users in companies not always possible.
A tool which needs that is for such users not suitable.
(Matlab developers might see that differently, and this feedback is from user perspective)
(assume IT is outsourced)
댓글 수: 0
Daniel Shub
2011년 11월 30일
The procedure is detailed here:
Basically setup the path the way you want. Then do
savepath foo/pathdef.m
where foo is your startup directory. You can specify the startup directory in a number of ways. On windows you can edit the shortcut ( http://www.mathworks.com/help/releases/R2011a/techdoc/matlab_env/f8-10506.html#f8-12959 ).
댓글 수: 4
Jan
2011년 12월 5일
Google finds the versionless location very fast- just serach for "Matlab savepath", e.g. http://www.google.de/search?q=Matlab+savepath
You find:
http://www.mathworks.de/help/techdoc/ref/savepath.html
The pattern is the same for all commands, simply replace "savepath" by the name of the command. This matchs even commands from special toolboxes.
LeChat
2021년 8월 10일
편집: LeChat
2023년 11월 21일
You need to name the file along with the path your are giving.
So go to the menu Home>Set Path, then set up your path and save.
Then, in Matlab command window:
>> savepath 'C:\Users\LeChat\Documents\MATLAB\pathdef.m'
Then restart Matlab and your path should be the one you saved before.
Hope this helps.
댓글 수: 2
John Culling
2023년 11월 21일
Doesn't work for me. I have the same problem that I can't write files where I need to to permanently control my path
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!