This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

File Operations

Find, view, and change files and folders

Functions

dirList folder contents
lsList folder contents
pwdIdentify current folder
fileattribSet or get attributes of file or folder
existCheck existence of variable, script, function, folder, or class
isfileDetermine if input is file
isfolderDetermine if input is folder
typeDisplay contents of file
visdiffCompare two files or folders
whatList MATLAB files in folder
whichLocate functions and files
cdChange current folder
copyfileCopy file or folder
deleteDelete files or objects
recycleSet option to move deleted files to recycle folder
mkdirMake new folder
movefileMove or rename file or folder
rmdirRemove folder
openOpen file in appropriate application
winopenOpen file in appropriate application (Windows)
Current Folder BrowserOpen Current Folder browser

Topics

Manage Files and Folders

Create, open, move, and rename files and folders.

Find Files and Folders

Search for files and folders using both simple and more advanced search methods.

Compare Files and Folders and Merge Files

View and merge differences between two files or folders.

Files and Folders that MATLAB Accesses

When you do not specify a path to a file, MATLAB® looks for the file in the current folder or on the search path. Functions in the current folder take precedence over functions with the same file name that reside anywhere on the search path.

Current Folder Browser Preferences

Specify the number of files that display in the Current Folder browser, and customize their appearance.

Share and Restore Files in MATLAB Online

Share files with others and restore previous versions of files in MATLAB Online™.