getfullpath
버전 1.0.0.0 (1.42 KB) 작성자:
Luca Cerone
getfullpath reconstructs the full path to a folder or file starting from
its relative path.
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
인용 양식
Luca Cerone (2024). getfullpath (https://www.mathworks.com/matlabcentral/fileexchange/38214-getfullpath), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 File Operations에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |