How to enter a function into matlab

1 visualización (últimos 30 días)
Nicholas Deosaran
Nicholas Deosaran el 16 de Sept. de 2020
Comentada: Walter Roberson el 16 de Sept. de 2020
Hello good day,
I am having issues on how to enter this equation into MATLAB.
Also,
thank you in advance !
  1 comentario
Walter Roberson
Walter Roberson el 16 de Sept. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam el 16 de Sept. de 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)

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by