How to make a grid plot with 3 parameters

Hi everyone,
May some one help me,
I have data in (x,y,x). I want to plot z in teh grid of x,y with a shift of 0.01
(Detail: I have 85000 values for x, y and Z. Where x is ranging from -129.0 to -131.0 and Y is 45.0 to 47.0. I want to plot teh values of z in a grid of x,y with an increment 0.1 for both x and y.
For example, zone 1 (-131.0 to -130.9, 45.0-45.1) include the z-values for this region and so on.
Data is presented as below:

Respuestas (1)

Ameer Hamza
Ameer Hamza el 10 de Sept. de 2020
Editada: Ameer Hamza el 10 de Sept. de 2020
For example,
X = %[85000x1] vector
Y = %[85000x1] vector
Z = %[85000x1] vector
[xq, yq] = meshgrid(-129:0.1:-131, 45:0.1:47);
zq = griddata(X, Y, Z, xq, yq);
surf(xq, yq, zq);

5 comentarios

aa
aa el 10 de Sept. de 2020
Thank for guidence. I required reuslts in 2D so that I can do further analysis for each grid.
Ameer Hamza
Ameer Hamza el 10 de Sept. de 2020
The xq, yq, and zq are 2D grids. Can you explain how do you want the results differently?
aa
aa el 10 de Sept. de 2020
I want to plot the z point in x-y grid as a scatter data after that I will to futher analzye teh data points in each grid
Ameer Hamza
Ameer Hamza el 10 de Sept. de 2020
Can you show an example of what is the expected output? Do you have an example figure?
aa
aa el 10 de Sept. de 2020
unfortunatly, i did not find anything like this, but let me calculate the whole data thenI will back to you

Iniciar sesión para comentar.

Categorías

Más información sobre Vector Fields en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

aa
el 10 de Sept. de 2020

Comentada:

aa
el 10 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by