Call function Callback into myfunction
1 回表示 (過去 30 日間)
古いコメントを表示
How can i call function Callback UpdateTableButtonPushed in my function MPV_Calc_Draw_Graph?
i try it but i get error
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1613826/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1613831/image.png)
回答 (1 件)
VBBV
2024 年 2 月 11 日
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 件のコメント
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.
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!