Calling the code behind PushButton Pressed Event

2 ビュー (過去 30 日間)
Jason
Jason 2020 年 8 月 27 日
コメント済み: Jason 2024 年 6 月 4 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by