real simulation time in Matlab function code

How can I use the current simulation time (lets say t) with my code in Matlab function block?

 Respuesta aceptada

Les Beckham
Les Beckham el 28 de En. de 2022

0 votos

Add an input to the Matlab function block and connect it to the output of a Clock block.

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 28 de En. de 2022

Respondida:

el 28 de En. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by