Date: Feb 14, 2013 10:27 AM
Author: Steven Lord
Subject: Re: Double Integral



"Olubode Adetuni" <bodetunji2200@yahoo.com> wrote in message
news:kfgoib$k8b$1@newscl01ah.mathworks.com...
> This is a test of my account. I have question on double integral using
> trapz. What is it accuracy particularly for functions like
> y_den=@(x,y)((1+x).^2.*x.^(-11/3).*exp(-(12.*(y.^(2/3)+(1-y).^(2/3)-1).*sig))./(B_bar.*rho_l.*epsilon(u).^(2/3).*d(t).^(5/3).*x.^(11/3)))
>
> x=[0.015:.1:1];
> y=y_num(x);
> area = trapz(x,y);


TRAPZ is just the trapezoidal rule.

http://en.wikipedia.org/wiki/Trapezoidal_rule

If you want to use something more sophisticated, look at INTEGRAL.

http://www.mathworks.com/help/matlab/ref/integral.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com