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')

조회 수: 1 (최근 30일)

답변 (2개)

Lucademicus
Lucademicus 2019년 10월 21일
From release 2018b you could use the function xline

Stephan
Stephan 2019년 10월 21일
use xline:
xline(1)
for example.

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by