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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

2014년 5월 1일

댓글:

2014년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by