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

"Olubode Adetuni" <> wrote in message
> 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.

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

Steve Lord
To contact Technical Support use the Contact Us link on