Can I use Variable step solver with Matlab Function blocks inside a Simulink model?

2 vues (au cours des 30 derniers jours)
My questions revolve around - Does Variable step solver work with Matlab Function block inside a Simulink model? Is the onus on the simulator or the function to "remember" that it's re-computing an intermediate time step?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 30 Nov 2018
Yes, It is possible to use Variable step solver when the Simulink model includes a MATLAB Function block.
However the MATLAB Function block doesn't know that it is dealing with a variable time step solver because it only operates on the data at the current time step and does not depend on the previous time step. In other words MATLAB Function block only operates on the data one time step at a time. So the onus is not on the function to know that it is dealing with intermediate time steps.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by