getfullpath

getfullpath reconstructs the full path to a folder or file starting from its relative path.
219 téléchargements
Mise à jour 17 sept. 2012

Afficher la licence

getfullpath reconstructs the full path to a folder or file starting from
its relative path.
It has been tested on Linux, but it should work on Windows and Mac as
well.

Syntax:
fpath=getfullpath(relative_file_or_dir_name)

Example 1:
(assuming to be in /home/user/Documents/Matlab)

fpath = getfullpath('../../Music/')

fpath =

/home/user/Music/

Example 2:
(assuming to be in /home/user/Documents/Matlab)

fpath=getfullpath('../../Music/Song.mp3')

fpath =

/home/user/Music/Song.mp3

Citation pour cette source

Luca Cerone (2026). getfullpath (https://fr.mathworks.com/matlabcentral/fileexchange/38214-getfullpath), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur File Operations dans Help Center et MATLAB Answers
Tags Ajouter des tags
Version Publié le Notes de version
1.0.0.0