Clear Filters
Clear Filters

A ramp block going backwards?

5 views (last 30 days)
Dani Tormo
Dani Tormo on 1 May 2014
Commented: Dani Tormo on 5 May 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.
Azzi Abdelmalek
Azzi Abdelmalek on 1 May 2014
How are you checking the signal in the m-function?
Dani Tormo
Dani Tormo on 5 May 2014
Saving the ramp value in a persistent variable.

Sign in to comment.

Accepted Answer

Guy Rouleau
Guy Rouleau on 2 May 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.

More Answers (0)


Find more on General Applications in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!