| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Statistics Toolbox |
| Contents | Index |
| Learn more about Statistics Toolbox |
Y = ncx2pdf(X,V,DELTA)
Y = ncx2pdf(X,V,DELTA) computes the noncentral chi-square pdf at each of the values in X using the corresponding degrees of freedom in V and positive noncentrality parameters in DELTA. Vector or matrix inputs for X, V, and DELTA must have the same size, which is also the size of Y. A scalar input for X, V, or DELTA is expanded to a constant array with the same dimensions as the other inputs.
Some texts refer to this distribution as the generalized Rayleigh, Rayleigh-Rice, or Rice distribution.
Compare the noncentral chi-square pdf with DELTA = 2 to the chi-square pdf with the same number of degrees of freedom (4):
x = (0:0.1:10)';
ncx2 = ncx2pdf(x,4,2);
chi2 = chi2pdf(x,4);
plot(x,ncx2,'b-','LineWidth',2)
hold on
plot(x,chi2,'g--','LineWidth',2)
legend('ncx2','chi2')


[1] Johnson, N., and S. Kotz. Distributions in Statistics: Continuous Univariate Distributions-2. Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 130–148.
pdf, ncx2cdf, ncx2inv, ncx2stat, ncx2rnd
Noncentral Chi-Square Distribution
![]() | ncx2inv | ncx2rnd | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |