S-function axes reset issue.
显示 更早的评论
Hi,
I have a S-function block written in Matlab level1. The block has codes to animate my simulink model. I have created a uicontrol push-button that calls a clear function in order to clear all my graphics and reset the animation to start again again from initialize values. However, when I press the button, all what I get is a quick clearing and then the animation objects continue from the same point where they cleared at. Could anyone help with this. Thanks!
Please see below: my uicontrol and clear function codes:
1-Uicontrol in the initialization function (mdlInitializeSizes):
uicontrol('Parent',Main,...
'Style','pushbutton'...
%etc,...%
'Callback',@(src,evt) reset);
2- The clear function:
function reset (src,evt);
cla
clear all
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Create MATLAB S-Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!