MATLAB: The markers specified for the stair graph are all lying at the bottom and not on the graph.

markersstair graph

The markers specified for the stair graph are all lying at the bottom of the plot and not on the graph. The Matlab version is 2016a. What could be the problem?

Best Answer

stairs() is itself a plotting function. Using it like this will give you unexpected results
stairs(i,energy(i),'Color',c(1, :),'Marker','*');
stairs(hr,hr_energy,'Color',c(2,:),'Marker', 'o');