MATLAB: How to enter a function into matlab

arrayfunctionmatlab function

Hello good day,
I am having issues on how to enter this equation into MATLAB.
Also,
thank you in advance !

Best Answer

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)