probability distribution function (normal distribution)

版本 1.2.0.0 (1.6 KB) 作者: Sherif Omran
This function calculates the probability under the normal distribution curve
3.5K 次下载
更新时间 2009/6/19

查看许可证

This function calculates the probability under the normal distribution curve, plots the graph and the area calculated.

%Normaldistribution
%
% calculating the area under a normal distribution curve
% from -ve infinity upto point x.
%
% Input:
% x : point on the normal distribution curve
% mean : mean of the normal distribution curve
% sigma : standard deviation of the normal distribution curve
% (hint: normal dist mean=0, sigma=1)
% plotting: Plot the calculated area if plotting = 1
% Output: area under the curve.
%
% Example:
% x=[-20:20] % your data points
% sigma=length(x)/2/3.5 % PDF width is 3.5 sigma
% mean=0 % mean between -20 and 20
% normaldistribution(0, mean, sigma,1) % Calculate area from -inf to 0
%
%
% Author:
% Sherif Omran
% University and university hospital of Zurich
% Date: May 2009
% Part of my phd thesis:
% email: sherif.omran@gmx.de
%-------------------------------------------------------------------------%

引用格式

Sherif Omran (2025). probability distribution function (normal distribution) (https://ww2.mathworks.cn/matlabcentral/fileexchange/23978-probability-distribution-function-normal-distribution), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Probability Distributions and Hypothesis Tests 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Added an example on how to use it

1.1.0.0

corrected the title: from prbability into probability

1.0.0.0