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 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by