MATLAB: Is there a difference in signal plot for the same signal in different scopes

plotplotsscopeSimscapesimulinktype

Why do I see the same signal from the Pulse Generator plotted different in the scope on two different displays? 

Best Answer

The difference is due to how the scope plots different signals. Kindly refer to the documentation below:
When the plot type setting of the scope is set to "auto" then the scope will inherently determine how to plot the signal on its displays. In this customer's case, the signal from the pulse generator is a discrete signal hence the "stairs" plot type is internally used in the first display while a "line" plot type is internally used for the second display.
If the plot type is changed to "stairs" then the signals will both represent the pulse generator response as shown below:
In case of "line" it will be as shown below:
When two signal are given as input to scope are different in sample times like one is "discrete" while the other is "continuous" then the precedence for plotting type is given to the continuous signal. Hence inherently a "Line" plot type is used.