How to upload files(any format) from any folder other than current folder in app designed by matlab app designer
2 次查看(过去 30 天)
显示 更早的评论
In matlab app, when I upload files using 'uigetfile' it only allows to upload files from current folder i.e. folder where app.mlap file is saved. How can I upload multiple files from other folder too?
1 个评论
Stephen23
2021-4-23
"How can I upload multiple files from other folder too?"
Use absolute/relative filenames:
You will need to use fullfile:
采纳的回答
Shadaab Siddiqie
2021-4-27
From my understanding you want to uplode files from other than the current folder. Here is a code which might help you.
[stmfile, stmpath] = uigetfile('*.txt', 'pick text file');
% example : [FileName,PathName] = uigetfile('C:\*.wav','All Wave Files (*.wav)');
A = importdata(fullfile(stmpath, stmfile), '\t', 15);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!