Contour plot with griddata

I have data(31,3); column 1 is time (T), column 2 is altitude (H) and column 3 is parameter (P) I want to plot as contourf. How do I make contourf of P? as function of T and H. Thank you in advance. T is between 18 and 24, H is between 150 and 600.

Respuestas (1)

Star Strider
Star Strider el 21 de Abr. de 2014

0 votos

You cannot with your data. The best you can do is scatter3, stem3, or plot3. The reason is that for contour and related plots (mesh, surf), P has to be defined at every combination of T and H, in this situation meaning that P has to be a (31x31) matrix. If you can express P as a function of T and H (a regression function will work), and can then define P as a function of the output of the (31x31) matrices meshgrid will create from T and H, then you can plot contour and related plots.

Categorías

Más información sobre Contour Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Abr. de 2014

Respondida:

el 21 de Abr. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by