How to execute a function upon pushing a button in a GUI constructed with GUIDE?
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Scope Variables and Generate Names in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!