How to create a load button in GUI manipulate the data?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi everyone!
This is the first time when I use GUI in matlab. I have to create a load button in which I upload my .txt file which has 3 colums with numbers. I managed to create the buttons and to open the file, but when when the file is selected, the data is not loaded into Matlab. Can you give me any suggestion? How can I transfer the data from the button to the workplace and how can I manipulate those colums?
Thanks in advance!
This is the code used:
[filename,pathname]=uigetfile('*.txt','Select Data File 1');
fullpathname =strcat(pathname,filename);
handles.data = load(fullpathname);
guidata(hObject,handles);
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!