MATLAB: How to plot the maximum value as an “asterik” everything else is just a normal line

MATLABplot

the maximum value as an "asterik" everything else is just a normal line

Best Answer

If you want markers at the rest of the points on the line and a different / larger / different color marker at the maximum, use the code in Walter's comment.
If you want a marker ONLY at the maximum and you're using release R2016b or later, use the MarkerIndices property of the line to specify you only want a marker at the maximum.