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

1 view (last 30 days)
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);

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!