getfullpath

getfullpath reconstructs the full path to a folder or file starting from its relative path.
214 download
Aggiornato 17 set 2012

Visualizza la licenza

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

Cita come

Luca Cerone (2024). getfullpath (https://www.mathworks.com/matlabcentral/fileexchange/38214-getfullpath), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2007a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su File Operations in Help Center e MATLAB Answers
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0