Matlab 在状态流程图中提供时间模拟

Matlab 在状态流程图中提供时间模拟,matlab,time,get,stateflow,Matlab,Time,Get,Stateflow,我想在模拟stateflow程序时获得模拟时间,但我不知道哪个命令可以在运行的每个步骤中为我提供时间 你能帮我吗 谢谢。您可以使用tictoc tic % doing something toc ... tic % doing something toc 总的来说,我希望你profile profile on %Your code here profile viewer 输出将显示代码在每个函数调用或条件语句等上花费的时间。更多信息

我想在模拟stateflow程序时获得模拟时间,但我不知道哪个命令可以在运行的每个步骤中为我提供时间

你能帮我吗


谢谢。

您可以使用
tictoc

tic
% doing something 
toc 
...
tic 
% doing something
toc
总的来说,我希望你
profile

profile on
%Your code here
profile viewer 
输出将显示代码在每个函数调用或条件语句等上花费的时间。更多信息