Info

この質問は閉じられています。 編集または回答するには再度開いてください。

help ㅜㅜㅜㅜㅜ Convert formulas to Mathlab code

1 回表示 (過去 30 日間)
heesoo lee
heesoo lee 2020 年 5 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日

回答 (1 件)

Guru Mohanty
Guru Mohanty 2020 年 5 月 8 日
You can define this integral using following steps:
  1. Declare constants and variables. Use syms to declare a symbolic variable.
  2. Built the expression under integral.
  3. Use vpaintegral function to compute definite integral.
Here is sample code for it.
k0=1;x=1;y=1;z0=1;
syms u
expr = cosh(u)^2 * cos(k0*x*cosh(u)) * cos(k0*y*cosh(u)*sinh(u)) * exp(-k0*(cosh(u*z0))^2);
out= vpaintegral(expr,u,[0,inf]);

タグ

Community Treasure Hunt

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

Start Hunting!