JoinPath is a replacement of FULLFILE, which is faster and works correctly under Matlab 2015b for drive letters:
JoinPath('C:\', '\') % 'C:\'
fullfile('C:\', '\') % 'C:\\'
Cite As
Jan (2026). JoinPath(Arg1, Arg2, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/55474-joinpath-arg1-arg2-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Filename Construction in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Typo fixed. |
