How I can produce a colour contour map?
Mostrar comentarios más antiguos
I have a data set in the form M=(180*360*12) where 180 is the latitude, 360 longitude and 12 is the averaged data for 12 months for 32 years. i want to plot contour map of it. i have proceeded this way, can somebody look into it and let me know what i am doing wrong here.
[lon lat]=Meshgrid(linspace(min(lon),max(lon)),linspace(min(lat),max(lat)));
contourf(lon,lat,M(:,3));
Thanks
3 comentarios
Hydro
el 10 de Dic. de 2014
Sean de Wolski
el 10 de Dic. de 2014
So the mean for each month?
And each slice is monthological? Jan, Feb,...Dec, Jan, Feb,...Dec?
Hydro
el 10 de Dic. de 2014
Respuestas (1)
Sean de Wolski
el 10 de Dic. de 2014
Editada: Sean de Wolski
el 10 de Dic. de 2014
contourf(M(:,:,3)) % all rows, columns and third page
You should also consider using contourm. Otherwise your lat/lon data will not be represent properly unless you project it into x/y using mfwdtran
1 comentario
Hydro
el 10 de Dic. de 2014
Categorías
Más información sobre Polar Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!