How to solve integral in matlab

Dear all
Can anyone help me to solve the following integral by using definite integration function i.e int(f,x) in matlab
I am looking forward to your help
With best wishes
zahid khan

 Accepted Answer

syms x
value=int(1/sqrt(2*Pi)*exp(-x^2/2),x,-Inf,Inf)
Best wishes
Torsten.

More Answers (1)

Orion
Orion on 14 Apr 2016
Hi,
to calculate integrals, the classic function to use is integral. Just see the associated doc.

Categories

Find more on Function Creation in Help Center and File Exchange

Asked:

on 14 Apr 2016

Answered:

on 14 Apr 2016

Community Treasure Hunt

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

Start Hunting!