triplequad problem
Afficher commentaires plus anciens
Hi all, I am new to matlab.I like to calculate the triple integral of a function,
x=sym('x');
y=sym('y');
t=sym('t');
w=sym('w');
fi2=(t(1.-2.0*t^2)^2(sqrt(t^2-0.25)))/(4.0*t^4(t^2-1.0)-(1.0-8.0(t^2-3.0*t^4+2.0*t^6));
j=besselj(0,(w*sqrt(2000.0/(1.125e7)))*t*sqrt(x*x+y*y));
F=@(t,x,y)fi2*j;
Q=triplequad(F,0.5,1.0,0,1.0,0,1.0)
and i am getting errors as
??? Error using ==> triplequad>innerintegral at 66 Inputs must be floats, namely single or double.
Error in ==> dblquad>innerintegral at 80 fcl = intfcn(xmin, y(1), varargin{:}); %evaluate only to get the class below
Error in ==> quad at 77 y = f(x, varargin{:});
Error in ==> dblquad at 60 Q = quadf(@innerintegral, ymin, ymax, tol, trace, intfcn, ...
Error in ==> triplequad at 53 Q = dblquad(@innerintegral, ymin, ymax, zmin, zmax, tol, quadf, intfcn, ...
Can some one suggest how to solve this? Thank you a lot.
Réponses (0)
Catégories
En savoir plus sur Bessel functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!