I have the name of a directory, but I would like to find out its full path. How can I do that?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2018년 2월 26일

3 개 추천

You can use the "what" command.  Please refer to the documentation here: <http://www.mathworks.com/help/matlab/ref/what.html>
 
>> s = what('myDir');
>> s.path
ans =
C:\path\to\myDir

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

제품

릴리스

R2017b

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by