How do I reset my pathdef to its default folder location (the /toolbox/local one)
Show older comments
i changed the deatult search path by mistake by using the command:
>> savepath C:\Users\tamarh\Documents\MATLAB\pathdef.m
I want to change it back to its default.
However, when I try typing:
>> savepath C:\Program Files\MATLAB\R2021b\toolbox\local\pathdef.m
I get this error:
Error using savepath
Too many input arguments.
Can someone tell me what is wrong with my syntax and how to fix it? should I just omit the space in the term Program Files, even though there is a space in this folder name?
when I try instead:
>> savepath ('C:\Program Files\MATLAB\R2021b\toolbox\local\pathdef.m')
I don't get an error, but it doesn't seem to work, because the "which" command doesn't identify the new pathdef:
>> which pathdef.m -all
C:\Users\tamarh\Documents\MATLAB\pathdef.m
Note that the file pathdef.m is there, at that location, but which doesn't find it.
I also checked what my root dir is, and it is the original, expected, one:
>> matlabroot
ans =
'C:\Program Files\MATLAB\R2021b'
Help please!.... which is now my true search path? I need it to be the "\local" folder.
I guess my idea of typing savepath(' ') was wrong, but how do I change back to the \local folder otherwise?
Why do I get the Error of Too many input arguments?...
Thanks!
1 Comment
Tamar Hoory
on 4 Sep 2023
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!