Cannot remove folder from path. Why?

5 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 31 de Jul. de 2015
Respondida: Sudhanshu Bhatt el 4 de Ag. de 2015
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 comentario
Matt J
Matt J el 31 de Jul. de 2015
What steps did you take to remove it and verify that the removal failed?

Iniciar sesión para comentar.

Respuestas (1)

Sudhanshu Bhatt
Sudhanshu Bhatt el 4 de Ag. de 2015
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

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by