MATLAB Answers

Function 'tic' is not supported for code generation

50 views (last 30 days)
chfakht chfakht
chfakht chfakht on 13 Mar 2015
Answered: Ander Erroicenea on 21 Mar 2019
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 Comments

Sign in to comment.

Answers (2)

Sebastian Castro
Sebastian Castro on 13 Mar 2015
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 Comments

Sign in to comment.


Ander Erroicenea
Ander Erroicenea on 21 Mar 2019
The same error appears to me, how did you resolve it?
- Ander.

  0 Comments

Sign in to comment.

Sign in to answer this question.