Hello guys can u help me to add vertical line on my probability density function, this is my code x=[-5:0.1:5]; a=normpdf(x,1,1); z=normpdf(x,3,2); plot(x,a,'b',x,z,'r') legend('normal signal','abnormal signal') ylabel('probability density function')

2 visualizaciones (últimos 30 días)

Respuestas (2)

Lucademicus
Lucademicus el 21 de Oct. de 2019
From release 2018b you could use the function xline

Stephan
Stephan el 21 de Oct. de 2019
use xline:
xline(1)
for example.

Categorías

Más información sobre Directed Graphs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by