Could I use uigetfile without Message "no file, check the file name...." ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I use this code in MATLAB R2012a.
[fileName, pathName, filterIndex] = uigetfile({'*.*';'*.xls';'*.txt';'*.csv'}, 'Select file(s)', 'MultiSelect', 'on','D:\');
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 28 Okt. 2013
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 Kommentare
Image Analyst
am 28 Okt. 2013
Then you then you did not use fullfile() as I recommended because if you did, it would have shown a folder name.
Weitere Antworten (1)
Walter Roberson
am 28 Okt. 2013
That code will not emit that message. The code you have after it might emit such a message.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!