knowing how much time does running of a m-file take?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Andrei Bobrov
2011-9-5
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!