How to plot the maximum value as an "asterik" everything else is just a normal line?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jab
el 16 de Feb. de 2018
Respondida: Steven Lord
el 16 de Feb. de 2018
the maximum value as an "asterik" everything else is just a normal line
2 comentarios
Rik
el 16 de Feb. de 2018
What do you mean? A line plot where one value should be plot with a marker as well?
Walter Roberson
el 16 de Feb. de 2018
plot(x, y, 'k-', x_at_max, y_at_max, 'r*')
Respuesta aceptada
Steven Lord
el 16 de Feb. de 2018
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.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!