MATLAB Answers

setpath / Set Path

121 views (last 30 days)
Pedro Pantalone
Pedro Pantalone on 15 Dec 2016
Commented: José-Luis on 16 Dec 2016
Hi,
I have the same issue on Windows & macOS. The Problem is that the toolbox contains a function that is native in MATLAB and thus I want the custom function to execute first.
The issue occurs with a toolbox that I installed that I wanted to move on top of the set path list. This is manually moved to the top: https://i.imgur.com/LMjejkR.png <http://i.imgur.com/LMjejkR.png>
Save and Close. Exit. Restart Matlab. Right at the bottom: https://i.imgur.com/7lsdo4Y.png
What is the matter with that?
thx.

  4 Comments

Show 1 older comment
Pedro Pantalone
Pedro Pantalone on 16 Dec 2016
well, links were inserted as pictures. i reedited for both. just to mention, the pathdef.m contains the correct order:
dbmn
dbmn on 16 Dec 2016
1) A common problem on company computers is that pathdef.m is set to read only (so your changes did nothing).
Could you check by adding another path, if you can effectively change pathdef.m?
2) Have you tried using the command line based addpath / savepath functions?
Do you get the same results with addpath?
José-Luis
José-Luis on 16 Dec 2016
A workaround is to explicitly call what you want:

Sign in to comment.

Answers (0)