www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ComputeStudentsTMeanAndVarianceExample.m
%% Compute Student's _t_ Mean and Variance % % Copyright 2015 The MathWorks, Inc. %% % Compute the mean and variance for Student's t distributions with degrees % of freedom _nu_ equal to 1 through 30. nu = reshape(1:30,6,5); [m,v] = tstat(nu) %% % Note that the variance does not exist for one and two degrees of freedom.