Files
School/Anul 2/Semestrul 1/Probabilitati si statistica/lab_3_3.m
T
2024-08-31 12:07:21 +03:00

14 lines
197 B
Matlab

p = input("Give a probability between 0 and 0.05 p=");
n = input("Give a number greater than 30 n=");
l=n*p;
for n = 1:3:100
x=0:n;
y=binopdf(x,n,p);
plot(x,y)
pause(0.5)
endfor