How to know total time taken by a solver to converge the system completely.

조회 수: 7 (최근 30일)
Sandy
Sandy 2016년 3월 26일
댓글: Sandy 2016년 3월 31일
Hello Simulink user, I am running simulink model through matlab m file and I am interested to know the total simulations time taken by different solver. ( total actual time which a solver takes to converge the model). Any suggestions will be greatly appreciated Thanks!

채택된 답변

dave1987
dave1987 2016년 3월 26일
Hey Sandy is this what you where looking for?
tic
sim('yourSimulinkModel.mdl')
time = toc
  댓글 수: 1
Sandy
Sandy 2016년 3월 31일
Hi Dave1987,
First of all sorry for replying late... I greatly appreciate your help! Can you please clarify my following questions. 1. what tic and toc stands for? ( my background is not computer science or programming)
2. I have noticed that in a new editor with just one line "time=tic' gives a really big number like '30384030483480' What does it mean?
3. Does "time=toc" gives elapsed time in seconds ?

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by