A ramp block going backwards?

4 次查看(过去 30 天)
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 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2014-5-1
How are you checking the signal in the m-function?
Dani Tormo
Dani Tormo 2014-5-5
Saving the ramp value in a persistent variable.

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by