Directory/Path of a file
조회 수: 27 (최근 30일)
이전 댓글 표시
Hello all
Is it possible to find the path of a filename given as input. Suppose say, I want to find the path to the file "XYZ.doc" in my system. Is there a way to find it in MATLAB?
Thanks
Bhomik
댓글 수: 0
답변 (1개)
Jan
2013년 7월 1일
편집: Jan
2013년 7월 1일
This searches the specified file name in all folders of the Matlab path:
File = which('XYZ.doc')
If this satisfies your needs depends on what exactly "your system" means. Does this mean the Matlab path, all local disks, all folders on the local disks with read access for the current user, or even all network connections? Even asking Google to search in the net is possible.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!