Why Ramp block output is continuous even when a discrete solver is chosen?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
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
2016년 3월 18일
You can choose how your scope displays your plot. change the parameters of your scope, in "style,line": choose "no line".
댓글 수: 0
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!