How can I remove all the paths for Toolboxes in MATLAB?

조회 수: 14 (최근 30일)
Abhishek Gupta
Abhishek Gupta 2011년 1월 14일
I have my own functions I created when I had only MATLAB and no other Toolboxes. Now with other Toolboxes installed, functions with the same names appear in them. Without uninstalling Toolboxes, I want to "undo" the path entries so that remaining paths retain only those to MATLAB and no other Toolboxes.

채택된 답변

Anish
Anish 2011년 1월 20일
There is no supported way of undoing the path setting in MATLAB. The safest way to avoid name collisions is to rename all user functions.
  댓글 수: 1
Jan
Jan 2011년 5월 13일
What about RMPATH and REHASH('toolboxcache')?
But you are absolutely right: Renaming the user function is much safer, because other Matlab function can refer to functions in the removed path also!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Kenneth Eaton
Kenneth Eaton 2011년 1월 20일
It sounds like you want to have MATLAB use your functions instead of functions with the same name in other toolboxes. The easiest way to do this is simply to change the order of folders on your path. If you move your folders higher on the path than the toolbox folders, then functions in those folders will have precedence and be called instead of functions by the same name in a toolbox. This will allow you to still use other functions in the toolboxes, which you wouldn't easily be able to do if you removed that toolbox from the path altogether.

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by