A ramp block going backwards?

조회 수: 4 (최근 30일)
Dani Tormo
Dani Tormo 2014년 5월 1일
댓글: Dani Tormo 2014년 5월 5일
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