relativepath.m

Convert path representations.
3,3K descargas
Actualizado 18 ago 2003

Ver licencia

RELATIVEPATH returns the relative path from an actual path to the target path.

Both arguments must be strings with absolute paths. The actual path is optional, if omitted the current dir is used instead. In case the volume drive letters don't match, an absolute path will be returned.

If a relative path is returned, it always starts with '.\' or '..\'

Syntax:
rel_path = RELATIVEPATH( target_path, actual_path )

Citar como

Jochen Lenz (2024). relativepath.m (https://www.mathworks.com/matlabcentral/fileexchange/3858-relativepath-m), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R12
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre File Name Construction en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0