How to execute a function upon pushing a button in a GUI constructed with GUIDE?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Scope Variables and Generate Names en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!