Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

File Name Construction

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

Functions

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

Topics

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?