fullfile
Build full file name from parts
Description
builds
a full file specification from the specified folder and file names. f
= fullfile(filepart1,...,filepartN
)fullfile
inserts
platform-dependent file separators where necessary, but does not add
a trailing file separator. On Windows® platforms, the file separator
character is a backslash (\
). On
other platforms, the file separator might be a different character.
fullfile
replaces all forward slashes (/
)
with backslashes (\
) on Windows. On UNIX® platforms,
the backlash (\
) character is a valid character
in file names and is not replaced.
fullfile
does not trim leading or trailing
separators. fullfile
collapses inner repeated file
separators unless they appear at the beginning of the full file specification. fullfile
also
collapses relative directories indicated by the dot symbol, unless
they appear at the end of the full file specification. Relative directories
indicated by the double-dot symbol are not collapsed.
Examples
Input Arguments
Output Arguments
Tips
To split a full file name into folder parts, use the
split
function.
Extended Capabilities
Version History
Introduced before R2006a