Hi all!

How do I find the integral of the Gaussian pdf in MATLAB? see e.g.

http://mathworld.wolfram.com/NormalDistribution.html

Is it like

0.5*erfc(-X/sqrt(2))?

Best Regards,

Arijit

# integral of the Gaussian PDF

Started by ●October 19, 2007

Reply by ●October 22, 20072007-10-22

Hi Arijit,

For integral calculations the independent variable has to be defined as symbolic constant initially, then integration has to be carried out by mentioning the upper and lower limit within the int command.

once this is over the double or static integer value has to be calculaated.

Plz refer the following example, i hope it clears ur doubt:

Ex:

syms t;

y = 5 * exp(-(t).^2);

y1 = int(y,low_limit, upp_limit);

int_val = double(y1);

Regards,

Ashwini

Hi all!

>

>How do I find the integral of the Gaussian pdf in MATLAB? see e.g.

>http://mathworld.wolfram.com/NormalDistribution.html

>

>Is it like

>0.5*erfc(-X/sqrt(2))?

>

>Best Regards,

>Arijit

>

For integral calculations the independent variable has to be defined as symbolic constant initially, then integration has to be carried out by mentioning the upper and lower limit within the int command.

once this is over the double or static integer value has to be calculaated.

Plz refer the following example, i hope it clears ur doubt:

Ex:

syms t;

y = 5 * exp(-(t).^2);

y1 = int(y,low_limit, upp_limit);

int_val = double(y1);

Regards,

Ashwini

Hi all!

>

>How do I find the integral of the Gaussian pdf in MATLAB? see e.g.

>http://mathworld.wolfram.com/NormalDistribution.html

>

>Is it like

>0.5*erfc(-X/sqrt(2))?

>

>Best Regards,

>Arijit

>

Reply by ●October 22, 20072007-10-22

Matlab does have the inbuilt functions erf and erfc. Type in "help erf" for more
info.

Gokul

----- Original Message ----

From: #ARIJIT BISWAS#

To: m...

Sent: Friday, 19 October, 2007 7:32:18 AM

Subject: [matlab] integral of the Gaussian PDF

Hi all!

How do I find the integral of the Gaussian pdf in MATLAB? see e.g.

http://mathworld. wolfram.com/ NormalDistributi on.html

Is it like

0.5*erfc(-X/ sqrt(2))?

Best Regards,

Arijit

Gokul

----- Original Message ----

From: #ARIJIT BISWAS#

To: m...

Sent: Friday, 19 October, 2007 7:32:18 AM

Subject: [matlab] integral of the Gaussian PDF

Hi all!

How do I find the integral of the Gaussian pdf in MATLAB? see e.g.

http://mathworld. wolfram.com/ NormalDistributi on.html

Is it like

0.5*erfc(-X/ sqrt(2))?

Best Regards,

Arijit