Calling the code behind PushButton Pressed Event

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Cris LaPierre
Cris LaPierre il 27 Ago 2020
Modificato: Cris LaPierre il 27 Ago 2020
app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.
  2 Commenti
Jason
Jason il 4 Giu 2024
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by