フィルターのクリア

Why Ramp block output is continuous even when a discrete solver is chosen?

3 ビュー (過去 30 日間)
Radhakrishna Kothamasu
Radhakrishna Kothamasu 2016 年 3 月 18 日
回答済み: David 2020 年 12 月 5 日
I observe that ramp output is continuous even when the discrete solver is chosen for the entire simulink model? I am expecting a step kind of plot but not a continuous one.
  1 件のコメント
David
David 2020 年 12 月 5 日
If this is the scope plot output, then in the "Style" dialog box, there is an option for "Plot type". Leaving it as auto, then Simulink somehow decides it is either Line or Stairs. Explicity set it to Stairs to get step plot you want.

サインインしてコメントする。

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 18 日
You can choose how your scope displays your plot. change the parameters of your scope, in "style,line": choose "no line".

David
David 2020 年 12 月 5 日
If this is the scope plot output, then in the "Style" dialog box, there is an option for "Plot type". Leaving it as auto, then Simulink somehow decides it is either Line or Stairs. Explicity set it to Stairs to get step plot you want.

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by