I am working with Matlab R2011a. I want to set a path at c:\matlab (say). But it seems that the path setting is not saved and I need to reset the path every time I start Matlab. Please advise.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to start Matlab in a specific path, and have that path automatically added to your search path, you modify the
userpathsetting:If you want to start Matlab in a specific path without having that path added to your search path, you have two options:
1) Create a file
startup.min the folderC:\Program Files\MATLAB\R2011a\toolbox\localand write in the filecd('C:\matlab'). This way, whenever Matlab is started, it changes the path (you can also add other commands that should be executed upon startup).2) Right-click onto the Matlab icon you normally use to start up the program, and in the properties, write
C:\matlabin theStart inline. Thus, whenever you start Matlab from the shortcut (but not otherwise), Matlab will change path.