It is a function that creates Jonswap/Pierson-Moskowitz spectrum and a wave based on that.
This file also has two examples: example.m and Drawing_both_spectrum.m.
The first one shows how to use the code and the second one shows the difference between Jonswap and Pierson-Moskowitz spectrums
Mohsen Vazirizade (2020). WaveModeling (https://www.github.com/smvazirizade/WaveModeling), GitHub. Retrieved .