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 Name Construction

Components of full paths, including folders, extensions, and separators


fileparts Parts of file name and path
fullfile Build full file name from parts
filemarker Character to separate file name and internal function name
filesep File separator for current platform
tempdir Name of system's temporary folder
tempname Unique name for temporary file
matlabroot Root folder
toolboxdir Root folder for specified toolbox


Specify File Names

If you do not specify a path name when accessing a file, MATLAB® first searches in the current folder. To indicate a file in a particular location, specify a path name.

Create Temporary Files

Use the tempdir function to return the name of the folder designated to hold temporary files on your system.

Was this topic helpful?