Problem with using college privileges desktop to set path for toolbox

Hi all, I have problem with using college privileges desktop
  1. I have a matlab code that need "bioinfo toolbox" to work with, so I do the steps below:
  2. Cope bioinfo toolbox into C:\Program Files\MATLAB\R2009b\toolbox
  3. Open Matlab, go to set path, add path with subfolder.
  4. After click save it appear error:
  5. MATLAB cannot save changes to the path. The path file, pathdef.m, might be read-only or might be in a directory for which you do not have write access. You can save pathdef.m to a different location, In order for MATLAB to user the pathdef.m in future sessions, you need to save it in your MATLAB startup directory (the directory from which you start MATLAB). Would you like to save pathdef.m to another location?
  6. So I click yes and save the pathdef.m in my codes folder, e.g. D:/mycode#
  7. [what to do with this step?]
I'm new to matlab, kindly explain in detail and show me the full steps. Thank you.

Answers (1)

If you search for "pathdef" in this forum, you will find the information, that this file should be saved in the startup folder. See either the command userpath or check the current folder after starting Matlab by cd. If pathdef.m is saved in this folder, it is preferred before ("for", "instead", "to"?) [matlabroot]\toolbox\local\pathdef.m.

4 Comments

What I'm understand is pathdef.m need to be saved in [matlabroot]\toolbox\local\pathdef.m, but in my case, I unable to save it because I have no privileges to do that, so I need to save in my own working place(e.g. D:/mycode). Hence, I need to "tell" Matlab that where I save my own pathdef.m so that it could read mine instead of default pathdef.m?
Can you show me the STEP instead? Thanks.
@ws: I've explained this already. Start Matlab and get the path of the current folder by typing "cd". Use this folder to store your personal pathdef.m file. Clear enough?
I have tried what you told me, but still can't works.
It's ok, I have solved my problem.
If you explain, how you have solved the problem and what "still can't work" mean, other users of this forum could learn from it. This is the underlying idea of a public forum.

Sign in to comment.

Categories

Asked:

ws
on 7 Dec 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!