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 (2025). relativepath.m (https://www.mathworks.com/matlabcentral/fileexchange/3858-relativepath-m), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: Fast and efficient spectral clustering, Improved relativepath.m
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |