Run .m function from GUI
3 views (last 30 days)
Show older comments
I have a GUI that collects user data in the form of numbers. I want the user to hit the pushbutton in the GUI in order to run a function file(.m file) that uses the imputed data of the user to display results
My function file is dish.m
The GUI pushbutton function is this:
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
What code do i need to run.
0 Comments
Accepted Answer
Image Analyst
on 25 Jan 2014
Call dish():
[out1, out2, out3] = dish(in1, in2); % or whatever arguments it has.
4 Comments
Image Analyst
on 25 Jan 2014
That's fine. You do not need to accept the values it returns if you don't plan on using them.
More Answers (0)
See Also
Categories
Find more on Whos 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!