How to load a .mat file with a push button, calculate the data using my own functions and plot a figure in a GUI made in GUIDE.
Show older comments
Hi everyone,
I am very new at this with making GUIs. I have a .mat file (consisting of 4 separate variables) that I am uploading using a push button in a GUI and using the code:
function load_file_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to load_file_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
filename = uigetfile('*.mat');
handles.data = load(filename);
I now want to change the data in the .mat file with a few functions I have written before as .m files (which I of course can copy into the GUI .m file) and plot a figure using a different pushbutton. Can anyone please help me?
Thanks in advance!
3 Comments
Azzi Abdelmalek
on 6 Jul 2016
Clarify what help you need
Andreas Ingelström
on 6 Jul 2016
Edited: Andreas Ingelström
on 6 Jul 2016
Andreas Ingelström
on 6 Jul 2016
Edited: Andreas Ingelström
on 6 Jul 2016
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!