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!