To change the current directory to a subfolder "subfolderName" in MATLAB, use the cd
command followed by the subfolder name with the path enclosed in quotes, as follows:
main.m28 chars2 lines
For example, if the subfolder "subFolder1" is located inside the folder "folder1", and both of these are located in the Desktop directory, use the following command to navigate to subFolder1:
main.m35 chars2 lines
You can also use the cd
command without any arguments to browse and select a folder interactively using a system-specific window.
main.m3 chars2 lines
Once this command is typed in the command window, a dialog box will be prompted to select the folder, then click OK to navigate to the selected folder.
gistlibby LogSnag