knowing how much time does running of a m-file take?
2 views (last 30 days)
Show older comments
does anyone know how we can know time between from starting to finishing a program (how much time does it take from starting to finishing of a program that written in a m-file)?
0 Comments
Accepted Answer
Andrei Bobrov
on 5 Sep 2011
variant 1 (command window)
>>tic
varoutput = yourfun(varinput) % use your m-file yourfun.m
tim = toc
% tim - time use your programm from yourfun.m
4 Comments
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!