Function 'tic' is not supported for code generation
11 次查看(过去 30 天)
显示 更早的评论
Hi all,
please i need to know how to calculate the elapsed time between 2 part of my matlab script because tic and toc are not supported for code generation
thanks
0 个评论
回答(2 个)
Sebastian Castro
2015-3-13
You can use coder.ceval to call an external function. To implement your own timing, you could include time.h and use the functionality there.
- Sebastian
2 个评论
Sebastian Castro
2015-3-13
I found something similar on Answers, in which the answer calls printf commands from stdio.h:
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!