How create a raster (or DEM) from 3D points?
Mostrar comentarios más antiguos
Hello
I have 3D points from a city contain x,y,z and I want to create a rater from this points. it means I want to use Z as value of my raster. is there any suggestion or code for me to get good result?
Respuestas (1)
KSSV
el 24 de Abr. de 2020
It depends how your data is scattered or gridded. Check the below two ways to plot your data.
%%structured
xi = unique(x) ; yi = unique(y) ;
[X,Y] = meshgrid(xi,yi) ;
Z = reshape(z,size(X)) ;
figure
surf(X,Y,Z)
%%unstructured
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
figure
trisurf(tri,x,y,z)
Also read about griddata, scatteredinterpolant.
Categorías
Más información sobre Map Display en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!