Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Y = binocdf2(x,n,p)
- a= 0;
- for k = 0:x
- a = a + (nchoosek(n,k) * p ^ k * (1-p) ^ (n-k));
- end
- Y = a;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement