www.gusucode.com > stats 源码程序 matlab案例代码 > stats/MeanofaFittedDistributionExample.m
%% Mean of a Fitted Distribution %% % Load the sample data. Create a vector containing the first column of students’ % exam grade data. load examgrades x = grades(:,1); %% % Create a normal distribution object by fitting it to the data. pd = fitdist(x,'Normal') %% % Compute the mean of the fitted distribution. m = mean(pd) %% % The mean of the normal distribution is equal to the parameter |mu|.