I want to see how long it takes to run a model

조회 수: 4 (최근 30일)
Fernando  Beltrán
Fernando Beltrán 2016년 9월 15일
편집: Mohamed Belkhayat 2019년 8월 27일
Good morning, I have a problem. I want to see how long it takes to run a model. But I do not know how to calculate the different times. (UpdateDiagramTime, AccelBuildTime and SimTime). If someone could help me. Thank you very much
  댓글 수: 1
Mohamed Belkhayat
Mohamed Belkhayat 2019년 8월 27일
편집: Mohamed Belkhayat 2019년 8월 27일
tic;sim('model');a=toc;save sim_time a;
this runs the model and saves the time to a file named sim_time in case you need that.

댓글을 달려면 로그인하십시오.

채택된 답변

Mischa Kim
Mischa Kim 2016년 9월 15일
편집: Mischa Kim 2016년 9월 15일
Fernando, I assume you are talking about Simulink models. There is a functionality called profiler that might help you. See the documentation for more detail.
  댓글 수: 1
Fernando  Beltrán
Fernando Beltrán 2016년 9월 15일
I understand that the parties in which the total simulation time is divided are.
Normal mode: compileAndLinkPhase, simulationPhase and terminationPhase
Accelerator mode:compileAndLinkPhase, simulationPhase and initiliazionPhase.
Is this true? Can you tell me which corresponds to each part?
Thank you very much

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Fernando  Beltrán
Fernando Beltrán 2016년 9월 15일
Thank you very much

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by