Calling the code behind PushButton Pressed Event

2 vues (au cours des 30 derniers jours)
Jason
Jason le 27 Août 2020
Commenté : Jason le 4 Juin 2024
Hello, Im using appdesigner and want to call the code thats behind a pushButtom pressed event:
function GetSingleSpectrumButtonPushed(app, event)
%my Code
How would I call this code without pushing the push button

Réponse acceptée

Cris LaPierre
Cris LaPierre le 27 Août 2020
Modifié(e) : Cris LaPierre le 27 Août 2020
app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.
  2 commentaires
Jason
Jason le 27 Août 2020
Thankyou
Jason
Jason le 4 Juin 2024
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by