Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How do I make a pushbutton execute a function that used to be done after user input was given?

2 vues (au cours des 30 derniers jours)
Danielle
Danielle le 21 Oct 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have a successful code that I am trying to modify to be completely displayed in a GUI. I have a few functions that used to be executed after a user typed either 'y' or 'n' for yes or no in the command window. I'd like the function to now be executed upon the push of a button. Does anyone know the easiest way to do this?

Réponses (1)

KL
KL le 21 Oct 2017
function pushbutton_callback(src,event)
[outputs] = your_function(inputs)
end

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by