Utilities
JSWAP.meshgrid
— FunctionSame with meshgrid in Matlab
X,Y=meshgrid(x,y) returns 2-D grid coordinates based on the coordinates contained in vectors x and y. X is a matrix where each row is a copy of x, and Y is a matrix where each column is a copy of y. The grid represented by the coordinates X and Y has length(y) rows and length(x) columns.
X,Y,Z=meshgrid(x,y,z) returns 3-D grid coordinates defined by the vectors x, y, and z. The grid represented by X, Y, and Z has size length(y)-by-length(x)-by-length(z).
JSWAP.write2mat
— Functionwrite a mat file.
Example: write2mat(path,var).
JSWAP.readmat
— Functionread a mat file.
Example: readmat(path,var).
JSWAP.rickerWave
— Functionricker wavelet.
Example:rickerWave(frequency,dt,nt,magnitude).