integracion
Publicado por raquel (2 intervenciones) el 27/12/2006 13:51:54
Con esta funcion:
function b0=funcionB(x)
bbX=[0 0.05 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.2 1.4 1.6 1.8 2 2.5 3 4 5 6 7 8 9 10];
bbY=[0 0.1036 0.1816 0.2793 0.3254 0.3410 0.3391 0.3271 0.3098 0.2899 0.2691 0.2484 0.2096 0.1756 0.1469 0.1229 0.1031 0.0674 0.0452 0.0219 0.0116 0.0066 0.004 0.0026 0.0017 0.0012];
if x<sqrt(.2)
b0=0.75*pi*x^2-5.97903*x^4+5.90278*x^6
elseif x>sqrt(5)
b0=13.5/x^6-6.75/x^10-122.5/x^12
else
b0=interp1(bbX,bbY,x)
end
quiero realizar este calculo, donde el resultado tendria que ser una matriz
syms t
for t=0:.1:100
n=1
xL0(n,1)=t
xL0(n,2)=int(funcionB(x)*sin(x*t),x,0,inf)
n=n+1
end
pero no me lo hace y me da errores que no entiendo...... a ver si alguien me puede ayudar, gracias
function b0=funcionB(x)
bbX=[0 0.05 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.2 1.4 1.6 1.8 2 2.5 3 4 5 6 7 8 9 10];
bbY=[0 0.1036 0.1816 0.2793 0.3254 0.3410 0.3391 0.3271 0.3098 0.2899 0.2691 0.2484 0.2096 0.1756 0.1469 0.1229 0.1031 0.0674 0.0452 0.0219 0.0116 0.0066 0.004 0.0026 0.0017 0.0012];
if x<sqrt(.2)
b0=0.75*pi*x^2-5.97903*x^4+5.90278*x^6
elseif x>sqrt(5)
b0=13.5/x^6-6.75/x^10-122.5/x^12
else
b0=interp1(bbX,bbY,x)
end
quiero realizar este calculo, donde el resultado tendria que ser una matriz
syms t
for t=0:.1:100
n=1
xL0(n,1)=t
xL0(n,2)=int(funcionB(x)*sin(x*t),x,0,inf)
n=n+1
end
pero no me lo hace y me da errores que no entiendo...... a ver si alguien me puede ayudar, gracias
Valora esta pregunta


0