View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Improved relativepath.m

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 2.18 KB File ID: #41253 Version: 1.0

Improved relativepath.m



Convert a path to a relative path

| Watch this File

File Information

Updated version of Jochen Lenz' relativepath.m for finding the relative path of a directory or filename relative to another (absolute) path.

The following improvements have been made over the original submission:

* More system agnostic – uses case-sensitive filenames when running under Linux/OSX
* Now supports input filenames as well as paths


Relativepath.M inspired this file.

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
19 Sep 2015 uido

uido (view profile)

I am using it for the simple straightforward case, and it works fine. Did not try hard examples though.

Contact us