Function 'tic' is not supported for code generation

9 visualizaciones (últimos 30 días)
chfakht chfakht
chfakht chfakht el 13 de Mzo. de 2015
Respondida: Ander Erroicenea el 21 de Mzo. de 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

Respuestas (2)

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

Iniciar sesión para comentar.


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

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by