This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

File Operations

Find, view, and change files and folders


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 Delete 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?