Create a grid from column data

6 vues (au cours des 30 derniers jours)
Dirk
Dirk le 29 Mai 2012
I am trying to create a grid from column data. I have 3 columns, an X coordinate, a Y coordinate, and a column of values (in this case salinity) measured at the X Y locations. I want to turn this data into a grid and then create a countour plot. I can do the plotting bit but I can't find a simple way of transforming the column data to gridded data. I am a little new to Matlab and any help would be greatly appreciated.

Réponse acceptée

Image Analyst
Image Analyst le 29 Mai 2012
Try TriScatteredInterp().
  2 commentaires
Dirk
Dirk le 14 Juin 2012
Thanks for that. I used the Triscatteredinterp, created a meshgrid and then interpolated my data over that meshgrid. Works fine. However, if I had wanted to turn my three columns of data into a grid from the start, what would be a good function to use ?
Walter Roberson
Walter Roberson le 14 Juin 2012
Minor hints: http://www.mathworks.com/matlabcentral/answers/41105-creating-a-meshplot-with-only-x-y-and-z-vectors-not-matrices

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Polar Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by