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!