uigetfile

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));

类别

帮助中心File Exchange 中查找有关 App Building 的更多信息

标签

提问:

2012-2-6

编辑:

2013-10-1

Community Treasure Hunt

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

Start Hunting!

Translated by