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!