Microsoft PowerPoint - Introduction to Matlab3

Microsoft PowerPoint - Introduction to Matlab3 - MATLAB...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB MATLAB PART PART PART PART PART PART PART PART 3 PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY PREPARED BY S. M. S. M. S. M. S. M. S. M. S. M. S. M. S. M. RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH RAFIGH 2011 2011 2011 2011 2011 2011 2011 2011 COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. COURSE BY : PROF. HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI HOSSEINI Binomial Distribution k=0:20; y=binopdf(k,20,0.5); ( ) (1 ) , 0,1,..., k n k n p k p p k n k −      = − =        2 (1 ) np np p μ σ = = − Bernoulli 1720 k=0:20; y=binocdf(k,20,0.5); airs k,y) stem(k,y) 20 0.5 n p = = stairs(k,y) grid on Binomial Distribution function y=mybinomial(n,p) for k=0:n y(k+1)=factorial(n)/(factorial(k)*factorial(n-k))*p^k*(1-p)^(n-k) end k=0:20; k=0:20; y=binopdf(k,20,0.1); y=mybinomial(20,0.5); stem(k,y) y=binopdf(k,20,0.1); stem(k,y) 20 0.5 n p = = 20 0.1 n p = = Geometric Distribution k=0:20; y=geopdf(k,0.5); 1 ( ) (1 ) , 1, 2,......
View Full Document

This note was uploaded on 06/21/2011 for the course ME 2072 taught by Professor Prof. hosseini during the Winter '09 term at Sharif University of Technology.

Page1 / 19

Microsoft PowerPoint - Introduction to Matlab3 - MATLAB...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online