ABSOLUTEPATH returns the absolute path relative to a given startpath.
The startpath is optional, if omitted the current dir is used instead.
Both argument must be strings.
Syntax:
abs_path = ABSOLUTEPATH( rel_path, start_path )
Cite As
Jochen Lenz (2026). absolutepath.m (https://nl.mathworks.com/matlabcentral/fileexchange/3857-absolutepath-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R12
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Filename Construction in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Coverage Report Generator, absolutepath
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | was wrong file |
