Call function Callback into myfunction

How can i call function Callback UpdateTableButtonPushed in my function MPV_Calc_Draw_Graph?
i try it but i get error

回答 (1 件)

VBBV
VBBV 2024 年 2 月 11 日

0 投票

Use simply the UpdateTableButton inside the function MPV_Calc_Draw_Graph.m file.
app.UpdateTableButton
and rename the function as
function UpdateTableButton(app,event)

5 件のコメント

Trop Trader
Trop Trader 2024 年 2 月 11 日
編集済み: Trop Trader 2024 年 2 月 11 日
but there is a problem:
if i push "Update Table" i call TableButtonPUshed..
if i rename it i can't call the function
VBBV
VBBV 2024 年 2 月 11 日
Can you attach the app file ?
Trop Trader
Trop Trader 2024 年 2 月 11 日
It's a very broad program... I can't share it
VBBV
VBBV 2024 年 2 月 11 日
Ok, if you name a pushbutton as UpdateTableButton its corresponing callback function in the app needs to have same name defined within the component methods. Conversly, when the callback function name differs from its GUI component name, it cannot find it and is likely to throw such type of errors.
Trop Trader
Trop Trader 2024 年 2 月 11 日
編集済み: Trop Trader 2024 年 2 月 11 日
ok thank

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

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2024 年 2 月 11 日

コメント済み:

Aa
2024 年 2 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by