chi2rnd - chi-square distribution with degrees of freedom...

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

View Full Document Right Arrow Icon
chi2rnd Chi-square random numbers Syntax R = chi2rnd(V) R = chi2rnd(V,u) R = chi2rnd(V,m,n) Description R = chi2rnd(V) generates random numbers from the chi-square distribution with degrees of freedom parameters specified by V . V can be a vector, a matrix, or a multidimensional array. R is the same size as V . R = chi2rnd(V,u) generates an array R of size u containing random numbers from the chi-square distribution with degrees of freedom parameters specified by V , where u is a row vector. If u is a 1-by-2 vector, R is a matrix with u(1) rows and u(2) columns. If u is 1-by-n, R is an n-dimensional array. R = chi2rnd(V,m,n) generates an m -by- n matrix containing random numbers from the
Background image of page 1

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

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

Unformatted text preview: chi-square distribution with degrees of freedom parameter V . Examples Note that the first and third commands are the same, but are different from the second command. r = chi2rnd(1:6) r = 0.0037 3.0377 7.8142 0.9021 3.2019 9.0729 r = chi2rnd(6,[1 6]) r = 6.5249 2.6226 12.2497 3.0388 6.3133 5.0388 r = chi2rnd(1:6,1,6) r = 0.7638 6.0955 0.8273 3.2506 1.5469 10.9197 See Also chi2cdf | chi2inv | chi2pdf | chi2stat | random How To Chi-Square Distribution Provide feedback about this page chi2pdf chi2stat © 1984-2009 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments...
View Full Document

This note was uploaded on 11/29/2010 for the course ECE 302 taught by Professor Gelfand during the Spring '08 term at Purdue University.

Page1 / 2

chi2rnd - chi-square distribution with degrees of freedom...

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

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