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, script, 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)

Examples and How To

Find Files and Folders

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

Comparing Files and Folders

View differences between two files or folders.

Manage Files and Folders

Create, open, move, and rename files and 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.

MathWorks File Extensions

View a list of common MathWorks® file extensions.

Was this topic helpful?