www.gusucode.com > stats 源码程序 matlab案例代码 > stats/QuantileQuantilePlotForNormalDistributionExample.m
%% Quantile-Quantile Plot for Normal Distribution %% % Use a quantile-quantile plot to determine whether gas prices in % Massachusetts follow a normal distribution. %% % Load the sample data. load gas %% % The sample data in |price1| and |price2| represent gasoline prices at 20 % different gas stations in Massachusetts. The samples were collected % during two different months. %% % Create a quantile-quantile plot to determine if the gas prices in % |price1| follow a normal distribution. figure qqplot(price1) %% % The plot produces an approximately straight line, suggesting that the gas % prices follow a normal distribution.