www.gusucode.com > stats 源码程序 matlab案例代码 > stats/MedianofaFittedDistributionExample.m
%% Median 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 median of the fitted distribution. m = median(pd) %% % For a symmetrical distribution such as the normal distribution, the % median is equal to the mean, |mu|.