Effacer les filtres
Effacer les filtres

How to enter a function into matlab

2 vues (au cours des 30 derniers jours)
Nicholas Deosaran
Nicholas Deosaran le 16 Sep 2020
Commenté : Walter Roberson le 16 Sep 2020
Hello good day,
I am having issues on how to enter this equation into MATLAB.
Also,
thank you in advance !
  1 commentaire
Walter Roberson
Walter Roberson le 16 Sep 2020
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.

Connectez-vous pour commenter.

Réponse acceptée

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam le 16 Sep 2020
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)

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by