compute computational time

1 次查看(过去 30 天)
dab483
dab483 2012-3-6
Hi,
i am running a simulation which have 2 blocks s-function (each represents different algorithm) in one simulink window. i want to make comparison between these two algorithms in terms of its computational time.
is that possible if i want to calculate its computational time for each blocks when run the simulation?
i know that we can use tic toc or cputime command if we run the simulation from m-file. any way if we want to know directly from simulink? Thank you in advance.

回答(1 个)

Ben
Ben 2012-3-23
Tick the 'profile' box in the Simulink tools menu, then run your simulation again.
  1 个评论
dab483
dab483 2012-5-17
hi, try your suggestion. so, we read directly from the self time right?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Block and Blockset Authoring 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by