relativepath.m

Convert path representations.

Vous suivez désormais cette soumission

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 )

Citation pour cette source

Jochen Lenz (2026). relativepath.m (https://fr.mathworks.com/matlabcentral/fileexchange/3858-relativepath-m), MATLAB Central File Exchange. Extrait(e) le .

Catégories

En savoir plus sur Filename Construction dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0