【问题标题】:provide time simulation in the stateflow chart在状态流程图中提供时间模拟
【发布时间】:2015-03-29 23:37:10
【问题描述】:

我想在模拟我的stateflow程序时得到模拟时间,不知道哪个命令可以给我运行每一步的时间。

你能帮帮我吗?

谢谢。

【问题讨论】:

    标签: matlab time get stateflow


    【解决方案1】:

    你可以使用tic-toc

    tic
    % doing something 
    toc 
    ...
    tic 
    % doing something
    toc
    

    总的来说,我会profile

    profile on
    %Your code here
    profile viewer 
    

    输出将显示您的代码在每个函数调用或条件语句等上花费了多少时间。更多信息here

    【讨论】:

      猜你喜欢
      • 2020-01-01
      • 1970-01-01
      • 2021-08-20
      • 2013-07-21
      • 2012-11-13
      • 2023-03-30
      • 2021-10-24
      • 1970-01-01
      • 2013-09-20
      相关资源
      最近更新 更多