A ramp block going backwards?

4 visualizaciones (últimos 30 días)
Dani Tormo
Dani Tormo el 1 de Mayo de 2014
Comentada: Dani Tormo el 5 de Mayo de 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 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 1 de Mayo de 2014
How are you checking the signal in the m-function?
Dani Tormo
Dani Tormo el 5 de Mayo de 2014
Saving the ramp value in a persistent variable.

Iniciar sesión para comentar.

Respuesta aceptada

Guy Rouleau
Guy Rouleau el 2 de Mayo de 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.

Más respuestas (0)

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by