Write a MATLAB program that uses the Trapezoidal rule integration algorithm to determine the integral: It is
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a MATLAB program that uses the Trapezoidal rule integration algorithm to determine the integral:
It is the integral from 0 to x of (x/sigma^2)*e^(-x^2/(2sigma^2)) dx
(4sigma^2=2, sigma^2=1/2)
Plot the equation (with x normalized to sigma^2 ) in the integral for x ranging from 0 to 4sigma^2
Use values for the integral limit for x of 0 and 2
Compare this with the exact value. (Hint: the integral should be 0 at x=0).
Cannot use MATLAB code, must create Trapezoidal in line function
Please show all work for rating
Related Book For
Principles of Communications Systems, Modulation and Noise
ISBN: 978-8126556793
7th edition
Authors: Rodger E. Ziemer, William H. Tranter
Posted Date: