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

2 visualizaciones (últimos 30 días)
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 comentario
David
David el 5 de Dic. de 2020
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.

Iniciar sesión para comentar.

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 18 de Mzo. de 2016
You can choose how your scope displays your plot. change the parameters of your scope, in "style,line": choose "no line".

David
David el 5 de Dic. de 2020
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.

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by