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

 采纳的回答

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

2 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Desktop 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by