Calling the code behind PushButton Pressed Event

6 views (last 30 days)
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

Accepted Answer

Cris LaPierre
Cris LaPierre on 27 Aug 2020
Edited: Cris LaPierre on 27 Aug 2020
app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.

More Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!