How to enter a function into matlab

조회 수: 2 (최근 30일)
Nicholas Deosaran
Nicholas Deosaran 2020년 9월 16일
댓글: Walter Roberson 2020년 9월 16일
Hello good day,
I am having issues on how to enter this equation into MATLAB.
Also,
thank you in advance !
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 9월 16일
is cosh(expression) in MATLAB.
is sinh(expression) in MATLAB.
MATLAB has not implicit multiplication. All multiplication must use the .* operator or the * (matrix multiplication) operator.

댓글을 달려면 로그인하십시오.

채택된 답변

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020년 9월 16일
H/2*sigma.*cosh(k.*(h+z))./sinh(k.*h).*cos(k.*x-sigma.*t)
H/2*sigma.^2.*cosh(k.*(h+z))./sinh(k.*h).*sin(k.*x-sigma.*t)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by