converting 2D XY coordinated into Grid format

조회 수: 4 (최근 30일)
SatyaPrakash Gupta
SatyaPrakash Gupta 2020년 4월 1일
댓글: KSSV 2020년 4월 2일
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

답변 (1개)

KSSV
KSSV 2020년 4월 1일
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
SatyaPrakash Gupta
SatyaPrakash Gupta 2020년 4월 2일
It is approx 8mb and it is not allowing me, thats why i have asked for the shared link
KSSV
KSSV 2020년 4월 2일
google drive.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by