Borrar filtros
Borrar filtros

converting 2D XY coordinated into Grid format

11 visualizaciones (últimos 30 días)
SatyaPrakash Gupta
SatyaPrakash Gupta el 1 de Abr. de 2020
Comentada: KSSV el 2 de Abr. de 2020
Hello ,
I have nearly 485719 XY coordinates and i would like to transfer this XY plotting over the grid format.
could you please do help me out.
I have already looked many examples but it does not help me out.
thank you

Respuestas (1)

KSSV
KSSV el 1 de Abr. de 2020
It depends whether your data is gridded or scattered. Follow the below code to get what you want. Let A be your m*2 array.
x = A(:,1) ; y = A(:,2) ;
%%structured
xi = unique(x) ; yi = unique(y) ;
[X,Y] = meshgrid(xi,yi) ;
figure
plot(X,Y,'.r')
%%unstructured
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
figure
trimesh(tri,x,y)
  12 comentarios
SatyaPrakash Gupta
SatyaPrakash Gupta el 2 de Abr. de 2020
It is approx 8mb and it is not allowing me, thats why i have asked for the shared link
KSSV
KSSV el 2 de Abr. de 2020
google drive.

Iniciar sesión para comentar.

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by