File Exchange

image thumbnail

Improved relativepath.m

version 1.0 (2.18 KB) by

Convert a path to a relative path

1 Download

Updated

View License

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

Comments and Ratings (1)

uido

uido (view profile)

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

MATLAB Release
MATLAB 8.0 (R2012b)
Acknowledgements

Inspired by: relativepath.m

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

» Watch video