How to create a load button in GUI manipulate the data?

1 回表示 (過去 30 日間)
Cretu Ioana
Cretu Ioana 2020 年 4 月 24 日
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 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by