Hello guys, i want to add threshold on my probability density function that is vertical line on x coordinate, how to do that pls help me
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
![Capture123.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/244085/Capture123.png)
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')
xlabel('process variable value')
title('probability distribution of normal data and abnormal data')
how to add vertical line at 1 of x line which is threshold
0 Kommentare
Antworten (1)
Bhaskar R
am 23 Okt. 2019
In your context the code is
hold on;
xline(1);
Assuming you have R2018b or higher version.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Time Series finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!