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
回答(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!