How to make a Hovmoller plot?
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi
I'm trying to make a Hovmoller diagram with latitudes out of the x-axis and the time up of the y-axis. The actual plot is the size of the geopotential height gradient, GHGN.
I have tried the code:
GHGN = (z(:,[80+[-1 0 1]])-z(:,[60+[-1 0 1]]))/(80-60)
figure(6);clf
contourf(latr+[-1 0 1],time,GHGN);
shading flat; colorbar
ylabel('Time (days)')
xlabel('Y distance (km)')
However, I got the error "Matrix dimensions must agree."
How do I get done so I can plot?
My variables have the sizes: latr = 1x181. time = 124x1. GHGN = 360x3. z = 360x181
z is dependent on time.
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!