Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- clear
- x = 0:10;
- p = 0.2;
- n = 10;
- y1 = binopdf(x, n, p);
- subplot(2, 2, 1);
- stem(y1);
- y2 = binocdf(x, n, p);
- subplot(2, 2, 2);
- stairs(y2);
- x = 0:15;
- l = 5;
- y3 = poisspdf(x, l);
- subplot(2, 2, 3);
- stem(y3);
- y4 = poisscdf(x, l);
- subplot(2, 2, 4);
- stairs(y4);
Add Comment
Please, Sign In to add comment