Could I use uigetfile without Message "no file, check the file name...." ?
1 回表示 (過去 30 日間)
古いコメントを表示
I use this code in MATLAB R2012a.
[fileName, pathName, filterIndex] = uigetfile({'*.*';'*.xls';'*.txt';'*.csv'}, 'Select file(s)', 'MultiSelect', 'on','D:\');
0 件のコメント
採用された回答
Image Analyst
2013 年 10 月 28 日
Most likely you just tried to use fileName. Bad decision. You need to construct the full filename (folder plus base filename plus extension):
fullFileName = fullfile(pathName, fileName);
Then use fullFileName wherever you tried to use fileName in subsequent code.
3 件のコメント
Image Analyst
2013 年 10 月 28 日
Then you then you did not use fullfile() as I recommended because if you did, it would have shown a folder name.
その他の回答 (1 件)
Walter Roberson
2013 年 10 月 28 日
That code will not emit that message. The code you have after it might emit such a message.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Shifting and Sorting Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!