How to upload files(any format) from any folder other than current folder in app designed by matlab app designer

6 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Shadaab Siddiqie
Shadaab Siddiqie il 27 Apr 2021
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);
For more information refer examples in uigetfile.

Più risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by