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 47 点赞 0 评论 71 浏览