Double integration in matlab

45 ビュー (過去 30 日間)
Pavan Kumar
Pavan Kumar 2018 年 1 月 26 日
回答済み: Swetha 2025 年 2 月 19 日
Hii Friends,
I am switching over form mathcad to matlab for performing double integrals.
In mathcad it was quite easy as there was no need of any syntax. I would like to implement it in matlab also.
Could you throw me an hint on how to solve the following kind of equations.
I need to evaluate this integral for certain value of z.
Could you give me hint regarding this.
Thanking you.
Pavan

採用された回答

Torsten
Torsten 2018 年 1 月 26 日
Use MATLAB's "int" twice:
syms a x1 y1 x y z lambda
f = exp(-(x1^2+x2^2)/a^2)*exp(1I*pi/(lambda*z)*((x-x1)^2+(y-y1)^2));
E = int(int(f,x1,-3*a,3*a),x2,-3*a,3*a)
Alternatively:
syms a x1 y1 x y z lambda
f1 = exp(-x1^2/a^2+1I*pi/(lambda*z)*(x-x1)^2);
f2 = exp(-y1^2/a^2+1I*pi/(lambda*z)*(y-y1)^2);
E = int(f1,x1,-3*a,3*a)*int(f2,x2,-3*a,3*a)
Best wishes
Torsten.
  1 件のコメント
Pavan Kumar
Pavan Kumar 2018 年 1 月 29 日
Thanks a lot Torsten....

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

その他の回答 (1 件)

Swetha
Swetha 2025 年 2 月 19 日
f=4*x*y
E= int(f,×1,0,1)*int(f2,×2,0,2)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by