Publisher review:simp - A simple modification of Matlab's TRAPZ function, but instead of using trapezoidal integration, the function uses Simpson's integration. This function is only viable for an odd number of elements along the dimension of integration. Certainly, this is a limitation; however, in my experience, the user can still define the number of data points for integration. If you can define the number of points, use SIMP. If not, use TRAPZ.Example:>> format long>> x = 0:0.25:1;>> y = 4./(1 x.^2);>> trapz(x,y)ans =3.13117647058824>> simp(x,y)ans =3.14156862745098>> pians =3.14159265358979 Requirements: ยท MATLAB Release: R14SP2
simp is a Matlab script for Mathematics scripts design by Shaun.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris