File Name Construction
Components of full paths, including folders, extensions, and
separators
Functions
fileparts | Get parts of file name |
fullfile | Build full file name from parts |
filemarker | Character to separate file name from local or nested function name |
filesep | File separator for current platform |
matlabroot | MATLAB root folder |
matlabdrive | Root folder of MATLAB Drive (Since R2021a) |
toolboxdir | Root folder for specified toolbox |
Topics
- Specify File Names
Construct valid path and file names including absolute and relative paths.
- Create Temporary Files
Use the
tempdir
function to return the name of the folder designated to hold temporary files on your system.