How to create a load button in GUI manipulate the data?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!