MATLAB Answers

how to calculate the processing time for the simulation

20 views (last 30 days)
mohan gopal
mohan gopal on 28 Mar 2012
Edited: Taha on 20 Jan 2015
is there any instructions holding to do the operation of the finding the processing time of an event

  0 Comments

Sign in to comment.

Answers (2)

Pramod Bhat
Pramod Bhat on 28 Mar 2012
yes. You can tic and toc functions for that. for example,
tic %event starts here . . some instructions
. . . toc % event ends here.

  0 Comments

Sign in to comment.


Taha
Taha on 20 Jan 2015
Edited: Taha on 20 Jan 2015
under Models-Properties than Callbacks than StartFcn -> tic than StopFcn -> toc. done! after simulations you will see the simulation time in MATLAB

  0 Comments

Sign in to comment.

Tags

No tags entered yet.

Products


Translated by