how can i make browse button
Ältere Kommentare anzeigen
I'm trying to do a browse button, i get the choose file window but after i select my file (which is not located in current folder in matlab) and click on ok, i get an error that says
Error using load
Unable to read file 'Co.txt'. No such file or directory.
while Co.txt is the file I'm trying to load which consist of columns of data
[filenameS1,pathS1]=uigetfile({'*.txt;'}, 'Choose Fisrt Sourse (S1) ');
filepathS1=fullfile('pathS1','filenameS1');
app.path = pathS1 %this is to make the path available in other callbacks
fid=fopen(filepathS1);
S1=load(filenameS1);
app.chS1=S1(:,1) %this is to make this data available in other callbacks
S1(:,1)
app.countS1=S1(:,2);%this is to make this data available in other callbacks
knowing that I'm using app designer
How can I overcome this error? thankyou
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu App Building finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!