symbolic Integration in Matlab
1 回表示 (過去 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!
0 件のコメント
採用された回答
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
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 ?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!