フィルターのクリア

symbolic Integration in Matlab

4 ビュー (過去 30 日間)
Pranjal Pathak
Pranjal Pathak 2012 年 3 月 23 日
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 件のコメント
Pranjal Pathak
Pranjal Pathak 2012 年 9 月 7 日
Thanks for your answer.

サインインしてコメントする。

その他の回答 (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 Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by