normalFit(x,varargi​n)

Version 1.0.0.0 (5.76 KB) by Toby
Performs a chi squared normality test on input sample x.
49 Downloads
Updated 3 Mar 2017

View License

% Performs a chi squared normality (goodness of fit) test on input sample x.
% Tests the null hypothesis H0 that the input data is sampled from a normal distribution.
% Returns a histogram which displays the results graphically.
%
% syntax: fHdl = normalFit(x)
% fHdl = normalFit(x, 'name')
% fHdl = normalFit(x, 'parameter', value, ...)
% fHdl = normalFit(x, 'name', 'parameter', value, ...)
%
% note: 'name' must NOT match any of the optional parameter names below.
%
%
% optional parameters:
% nBins (integer) - specify number of bins to include in histogram;
% automatically determined by default.
% confidence (0<x<1) - confidence level to be used in chi squared test.
% (probability of accepting H0, given that it's true - defaults to 0.95)
% roundLabels (bool) - if true, shortens and rounds bin labels (e.g. '1.68547e8' -> '169 (x10^6)')
% default is false.

Cite As

Toby (2024). normalFit(x,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/61874-normalfit-x-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0