getfullpath

getfullpath reconstructs the full path to a folder or file starting from its relative path.
219 Descargas
Actualizado 17 sep 2012

Ver licencia

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

Citar como

Luca Cerone (2026). getfullpath (https://es.mathworks.com/matlabcentral/fileexchange/38214-getfullpath), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2007a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre File Operations en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas
Versión Publicado Notas de la versión
1.0.0.0