eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); eta=eta0*exp(-(x.^2+y.^2)/R^2);
eta indicates sea surface height in each point (x,y). Calculate geostrophic current (u,v).
https://en.wikipedia.org/wiki/Geostrophic_current
Back to basics 8 - Matrix Diagonals
707 Solvers
Back to basics 22 - Rotate a matrix
682 Solvers
232 Solvers
310 Solvers
Matlab Basics - Absolute Value
272 Solvers