Function 'tic' is not supported for code generation

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

Antworten (2)

Sebastian Castro
Sebastian Castro am 13 Mär. 2015

0 Stimmen

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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Ander Erroicenea
Ander Erroicenea am 21 Mär. 2019

0 Stimmen

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

Produkte

Gefragt:

am 13 Mär. 2015

Beantwortet:

am 21 Mär. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by