simulink 计时clocktime 使用tic tocif isempty(get_param(sys,'StartFcn'))set_param(sys,'StartFcn','tStart = tic;') ;endif isempty(get_param(sys,'StopFcn'))set_param(sys,'StopFcn','tElapsed = toc(tStart)') Matlab 2023-05-24 177 点赞 2 评论 268 浏览