MATLAB Answers

Function 'tic' is not supported for code generation

조회 수: 57(최근 30일)
chfakht chfakht
chfakht chfakht 13 Mar 2015
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

Sign in to comment.

답변(2개)

Sebastian Castro
Sebastian Castro 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

chfakht chfakht
chfakht chfakht 13 Mar 2015
Thanks :) have you an example of that ??
Sebastian Castro
Sebastian Castro 13 Mar 2015
I found something similar on Answers, in which the answer calls printf commands from stdio.h:

Sign in to comment.


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

  댓글 수: 0

Sign in to comment.


Translated by