Hi, I have made a gui which opens a folder(In that folder there are some more folders in a directory) and it copies the file(.csv) and rename it with (sub)folder name and save it in the main(parent)folder.Now I want to remove the folder,from which I copied my file and save it in MAIN folder.When i use rmdir('pathname','s'),it gives me the following error''??? Error using ==> rmdir \\———–\data\My Documents\MATLAB\pathname is not a directory.''Because it has added the directory(pathname)in the current directory of matlab.I want to remove the folder whose directory is pathname.Could somebody tell me please how it would work.Thanks
MATLAB: Removing a folder from a directory outsaide the current directory of Matlab
mrdirremoving folder outside current directory
Best Answer