필터 지우기
필터 지우기

How can I use uigetfile to get the file path?

조회 수: 89 (최근 30일)
Alejandro
Alejandro 2013년 4월 11일
Hello, I was wondering if I could use the function uigetfile to get the complete file path string.

채택된 답변

Image Analyst
Image Analyst 2013년 4월 12일
The documentation for uigetfile() is remiss in not showing any examples that use fullfile() to construct the full file name of the chosen file. Here is how you do it:
[baseName, folder] = uigetfile();
fullFileName = fullfile(folder, baseName)
  댓글 수: 1
Alejandro
Alejandro 2013년 4월 12일
Thank you! I was looking for the full file path and this is it!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Matt J
Matt J 2013년 4월 12일
The 2nd output argument of uigetfile() gives the path info. See
>>doc uigetfile
  댓글 수: 1
Jan
Jan 2013년 4월 12일
Exactly. Reading the help and doc text is a good strategy, when you have questions conderning a command.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Adding custom doc에 대해 자세히 알아보기

태그

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

Community Treasure Hunt

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

Start Hunting!

Translated by