Calling the code behind PushButton Pressed Event

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

app.GetSingleSpectrumButtonPushed(app, event)
You can see a similar answer here.

2 Comments

Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

Sign in to comment.

More Answers (0)

Categories

Asked:

on 27 Aug 2020

Commented:

on 4 Jun 2024

Community Treasure Hunt

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

Start Hunting!