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 (2024). 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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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. |