Calling the code behind PushButton Pressed Event

6 Ansichten (letzte 30 Tage)
Jason
Jason am 27 Aug. 2020
Kommentiert: Jason am 4 Jun. 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

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 27 Aug. 2020
Bearbeitet: Cris LaPierre am 27 Aug. 2020
app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.
  2 Kommentare
Jason
Jason am 27 Aug. 2020
Thankyou
Jason
Jason am 4 Jun. 2024
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by