필터 지우기
필터 지우기

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 CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by