How to enter a function into matlab
2 ビュー (過去 30 日間)
古いコメントを表示
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
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
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!