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

 採用された回答

Cris LaPierre
Cris LaPierre 2020 年 8 月 27 日
編集済み: Cris LaPierre 2020 年 8 月 27 日

0 投票

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

2 件のコメント

Jason
Jason 2020 年 8 月 27 日
Thankyou
Jason
Jason 2024 年 6 月 4 日
Just an update, its actually this that works:
app.GetSingleSpectrumButtonPushed(event)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDesktop についてさらに検索

質問済み:

2020 年 8 月 27 日

コメント済み:

2024 年 6 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by