How to upload files(any format) from any folder other than current folder in app designed by matlab app designer
조회 수: 3 (최근 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!