필터 지우기
필터 지우기

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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by