symbolic Integration in Matlab

2 visualizaciones (últimos 30 días)
Pranjal Pathak
Pranjal Pathak el 23 de Mzo. de 2012
Hi,
Can anyone help me out in solving the foll relation having integration using Matlab:
S=2*v*Im[{int, 0 to 1(exp(j*b*R1)rdr }* {int, 0 to 1(R2*exp-j*b*R1)rdr}]
Where: v=pi, R1=sqrt(3)*(2*r.^2-1),R2=sqrt(3)*(2*r.^2-1),Im=imaginary, j=sqrt(-1),b=0.7,int=integration.
This might be an easy one, but I tried many times but could not solve to get the right ans. I hope that the ans should be a single value. But I got the ans in the form of a matrix of dim(64x64).
Please help me out with the coding how to solve this.
Thanking You!

Respuesta aceptada

William
William el 23 de Mzo. de 2012
Are you using the syms command which is in the symbolic toolbox? If you're attempting to integrate with a variable that has not been defined without the toolbox your code will not work.
Please post the actual command as you input it into MATLAB

Más respuestas (1)

Andrei Bobrov
Andrei Bobrov el 23 de Mzo. de 2012
syms r
R1=sqrt(3)*(2*r.^2-1)
R2=sqrt(3)*(2*r.^2-1)
b = .7;
S=2*pi*imag(int(exp(1i*b*R1)*r,r,0,1)*int(R2*exp(-1i*b*R1)*r,r,0,1))
out = vpa(S)
R1 = R2 ?

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by