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!