getfullpath

getfullpath reconstructs the full path to a folder or file starting from its relative path.
219 Downloads
Aktualisiert 17. Sep 2012

Lizenz anzeigen

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

Zitieren als

Luca Cerone (2025). getfullpath (https://de.mathworks.com/matlabcentral/fileexchange/38214-getfullpath), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu File Operations finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0