You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Resolves relative paths and extra filesep characters in the input.
Syntax:
OUTPUT = REALPATH(THEPATH)
where THEPATH is the path to a file or folder, which should exist.
Example:
realpath('../myfile.txt');
% returns /home/user/whatever/myfile.txt
Cite As
M MA (2026). realpath (https://se.mathworks.com/matlabcentral/fileexchange/8680-realpath), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: realpath
General Information
- Version 1.0.0.0 (1.46 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
