답변 (2개)

Stephen23
Stephen23 2015년 9월 22일
편집: Stephen23 2015년 9월 22일

2 개 추천

Use rmdir:
rmdir(folderName,'s')

댓글 수: 2

Gopalakrishnan venkatesan
Gopalakrishnan venkatesan 2015년 9월 22일
편집: Gopalakrishnan venkatesan 2015년 9월 22일
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 2015년 9월 22일
Call dir D:\Bala and tell us exactly what is displayed.

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

Guillaume
Guillaume 2015년 9월 22일

1 개 추천

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.

카테고리

도움말 센터File Exchange에서 Search Path에 대해 자세히 알아보기

질문:

2015년 9월 22일

답변:

2015년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by