Hi everyone,
I am quite new to MATLAB and asking for some help to programme the wave dispersion equation.
ω^2= gktanh(kh)
where
𝑔 is gravity (9.81), ℎ is water depth, and 𝑘 is the wavenumber.
I would like to programme this function using an iterative process, and use it whenever I need to solve it for finding wavelength L, wave period T (2pi/omega)
Could someone please guide me in the process to create it and help further understand the mechanisms of iteration in MATLAB?
Thanks a lot!