symbolic Integration in Matlab

2 次查看(过去 30 天)
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!

采纳的回答

William
William 2012-3-23
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

更多回答(1 个)

Andrei Bobrov
Andrei Bobrov 2012-3-23
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 ?

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by