Azzera filtri
Azzera filtri

median line in the histogram of the image

2 visualizzazioni (ultimi 30 giorni)
Hi I want to add a median line to the histogram and represent that line in different color. How do i do that ?

Risposta accettata

Stephan
Stephan il 1 Dic 2020
A = randn(100,1)
histogram(A)
xline(median(A),'-r','LineWidth',2)

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by