필터 지우기
필터 지우기

uigetfile

조회 수: 5 (최근 30일)
nsbd
nsbd 2012년 2월 6일
편집: Matt J 2013년 10월 1일
loading have in the same folder but fails to sub-folders , why ?
N.Horro = importdata(uigetfile);
tnhks
  댓글 수: 2
nsbd
nsbd 2012년 2월 6일
N.Horro = importdata(imgetfile);
going on in this way , but I did not like the style of representation.
Jan
Jan 2012년 2월 6일
What does "fail in subfolders" exactly mean? What do you try and which error message occurs?

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

답변 (1개)

Jan
Jan 2012년 2월 6일
The syntax importdata(uigetfile) catchs only one output from uigetfile. To specify the path, you need to catch the 2nd output also:
[FileName, FilePath] = uigetfile;
if ~ischar(FileName)
disp('User aborted file input.');
return;
end
N.Horro = importdata(fullfile(FilePath, fileName));

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by