How to execute a function upon pushing a button in a GUI constructed with GUIDE?
Show older comments
I have created a GUI using the GUIDE interface. Users will input two values and push a button to run the program. I have created the two input values as global variables and defined them in the edit1_Callback and edit2_Callback as
FP = str2double(get(hObject, 'String')); and GP = str2double(get(hObject, 'String')); respectively.
The FP and GP values are located within a function BVP. I'm struggling to understand how to get the function to execute in the button's callback upon pushing the button. Any example code/advice would be useful. I haven't had success in finding an applicable example up to now.
Accepted Answer
More Answers (0)
Categories
Find more on Scope Variables and Generate Names 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!