Matlab function runtime in Simulink
Mostra commenti meno recenti
Hi all, I made a Simulink model that incorporates a certain given block, as well as a matlab function I wrote myself. The given block demands that the time step will be 0.001 secs, but the function (using tic/toc) takes close to 0.003 secs to calculate.
Does anyone know the mechanism behind this? should I use a rate transition block before and after the function? Or is it OK to leave it as-is?
Thanks in advace, Tim
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Subsystems in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!