Borrar filtros
Borrar filtros

Delete the folder existing in the matlab path

28 visualizaciones (últimos 30 días)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan el 22 de Sept. de 2015
Respondida: Guillaume el 22 de Sept. de 2015
How can i delete the folder and its subfolder and its files in the matlab path ??

Respuestas (2)

Stephen23
Stephen23 el 22 de Sept. de 2015
Editada: Stephen23 el 22 de Sept. de 2015
Use rmdir:
rmdir(folderName,'s')
  2 comentarios
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan el 22 de Sept. de 2015
Editada: Gopalakrishnan venkatesan el 22 de Sept. de 2015
i am getting a error as ??? Error using ==> rmdir D:\Bala\files is not a directory.
But the folder already in the matlab path only, still i am getting the error
Stephen23
Stephen23 el 22 de Sept. de 2015
Call dir D:\Bala and tell us exactly what is displayed.

Iniciar sesión para comentar.


Guillaume
Guillaume el 22 de Sept. de 2015
To delete a folder on disk, use rmdir as per Stephen's answer. Matlab path is irrelevant for this.
To remove a folder from matlab's search path, use rmpath. This does not delete the folder from disk if it exists. If you've also added subfolders to the path, you need to remove each one of these individually. Alternatively, use
pathtool
to add and remove folders through a UI.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by