Where to store my pathdef.m
190 views (last 30 days)
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?
More Answers (3)
Daniel Shub on 30 Nov 2011
The procedure is detailed here:
Basically setup the path the way you want. Then do
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 ).
LeChat on 10 Aug 2021
Edited: LeChat on 10 Aug 2021
You need to name the file along with the path your are giving.
So go to the menu Home>Set Path, then set up you 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.