Documentation Center

  • Trials
  • Product Updates

Files and Folders

View and change files and folders

Functions

dir List folder contents
ls List folder contents
pwd Identify current folder
fileattrib Set or get attributes of file or folder
exist Check existence of variable, function, folder, or class
isdir Determine whether input is folder
type Display contents of file
visdiff Compare two text files, MAT-Files, binary files, Zip files, or folders
what List MATLAB files in folder
which Locate functions and files
cd Change current folder
copyfile Copy file or folder
delete Remove files or objects
recycle Set option to move deleted files to recycle folder
mkdir Make new folder
movefile Move file or folder
rmdir Remove folder
open Open file in appropriate application
winopen Open file in appropriate application (Windows)
Was this topic helpful?