MATLAB: Marker only on one side of line

marker line

How can I change line marker style (size,color,etc) only on one side of the line ?

Best Answer

If you want the orange marker on top of the blue marker then draw the one with the orange marker later, or use uistack to put it higher in the stack. This might require setting the axes DrawOrder property.
If you are using R2014a or earlier and you are using opengl renderer then you might need to set the z coordinate of the line to be closer to the viewer. With the default view or the view(2) view that corresponds to a higher z value as the default is "looking down" from z infinity.