You can use MATLAB's stairs
function inside Simulink to plot data on the Y-axis and time on the X-axis as shown in the following steps:
stairs(myData)
to plot the data using the stairs function.The resulting figure should show a graph with time on the X-axis and the data on the Y-axis, plotted using the stairs function.
gistlibby LogSnag