Since delete command doesn't work on folders and rmdir deletes everything including the root folder, I have written this piece of code to remove/delete all the files and subfolders within a given folder without deleting the folder itself. Please specify the full path of the folder in order to empty it's contents.
인용 양식
Ajay Kumar (2026). cleardir (https://kr.mathworks.com/matlabcentral/fileexchange/155507-cleardir), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2023b
모든 릴리스와 호환
