MATLAB: Moving files sysntax

moving files

I would like to move files that start with data- to a folder called data that is in the same directory as the files:
mkdir ('data');
having problems with the syntax of the destination folder

Best Answer

  • Your code should work. The only thing is that you need to run the code in the same folder where those data-* files are resident in because you didn't specify the full path. In other words, your MATLAB current folder needs to be that folder.