A ramp block going backwards?

4 vues (au cours des 30 derniers jours)
Dani Tormo
Dani Tormo le 1 Mai 2014
Commenté : Dani Tormo le 5 Mai 2014
Hey people!
I am using a ramp block in Simulink driven into an m-function. I am checking the signal every time the m-function is executed and sometimes the ramp value is decreasing.
How can be this possible?
Many thanks.
  2 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 1 Mai 2014
How are you checking the signal in the m-function?
Dani Tormo
Dani Tormo le 5 Mai 2014
Saving the ramp value in a persistent variable.

Connectez-vous pour commenter.

Réponse acceptée

Guy Rouleau
Guy Rouleau le 2 Mai 2014
You are probably using a variable step solver. Variable step solvers often need to take steps backward to ensure they respect the specified tolerance.

Plus de réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by