MATLAB: Calling the code behind PushButton Pressed Event

eventpushbutton

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

Best Answer

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