Effacer les filtres
Effacer les filtres

plot data on a meshgrid

10 vues (au cours des 30 derniers jours)
Tiziano Bagnasco
Tiziano Bagnasco le 28 Mai 2022
Réponse apportée : KSSV le 28 Mai 2022
Good morning everyone, I ran a simulation with SWAN (Simulating WAve Nearshore) and I am trying to plot several variables on a meshgrid.
I have two matrices: a 72x77 matrix that represents the x-coordinates of the points of the grid and a 72x77 matrix that represents the y-coordinates of the points of the grid. ( These two matrices have Na values in some locations because there are some land obstacles in the domain) With these two matrices I would like to plot the meshgrid and then plot any variable above it ( also 72x77 matrix). For example, the first variable that I would like to show is the water depth, since I want to obtain a bathymetry plot.
Thank you a lot for your help in advance.

Réponse acceptée

KSSV
KSSV le 28 Mai 2022
Read about pcolor, surf

Plus de réponses (0)

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by