Cannot remove folder from path. Why?

조회 수: 5 (최근 30일)
Mr M.
Mr M. 2015년 7월 31일
답변: Sudhanshu Bhatt 2015년 8월 4일
There is a folder in my path, which cannot be removed. The folder is not a default MATLAB toolbox, it was added by me previously. What to do?
  댓글 수: 1
Matt J
Matt J 2015년 7월 31일
What steps did you take to remove it and verify that the removal failed?

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

답변 (1개)

Sudhanshu Bhatt
Sudhanshu Bhatt 2015년 8월 4일
Hello Mr M,
MATLAB function "rmpath" is used to remove a particular folder from the search path.
For Example:
Path of the folder to remove: C:\Unwanted\Folder
On MATLAB Command line:
>> rmpath('C:\Unwanted\Folder');
This will remove the folder from your path. To check if the folder has been removed you can use "path" on MATLAB command line, which will give all the folders in your path. For Example:
>> path
Note: If you want to restore your path to default, "restoredefaultpath" command an be used, which will reset path to factory installed state i.e. when MATLAB was installed..
More information on rmpath, path and restoredefaultpath can be found in the documentation link below:
Hope this helps.
Thanks
Sudhanshu Bhatt

카테고리

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