With this function, you can get the value of L (wavelength), k (wave number), sigma(angular frequency), using different solutions of the dispersion relationship.
h = deep water (m)
T = wave period (s)
kr = wave number with Newton-Rhapson (1/m)
Lr = wavelength with Newton-Rhapson (m)
sigma = angular frequency (1/T)
In the command window you can see the different values which were computed, using different equations.
Fenton,J.D and Mckee,W.D.(1990). On calculating the lengths
of water waves. Coastal Engineering 14, 499-513p.
Gar (2020). Dispersion relationship for water waves (https://www.mathworks.com/matlabcentral/fileexchange/23995-dispersion-relationship-for-water-waves), MATLAB Central File Exchange. Retrieved .