Function 'tic' is not supported for code generation

조회 수: 11 (최근 30일)
chfakht chfakht
chfakht chfakht 2015년 3월 13일
답변: Ander Erroicenea 2019년 3월 21일
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

답변 (2개)

Sebastian Castro
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
chfakht chfakht
chfakht chfakht 2015년 3월 13일
Thanks :) have you an example of that ??
Sebastian Castro
Sebastian Castro 2015년 3월 13일
I found something similar on Answers, in which the answer calls printf commands from stdio.h:

댓글을 달려면 로그인하십시오.


Ander Erroicenea
Ander Erroicenea 2019년 3월 21일
The same error appears to me, how did you resolve it?
- Ander.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by