Converting gridded elevation data and x, y coords into row output
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Wthee
el 20 de Sept. de 2020
Comentada: Walter Roberson
el 23 de Sept. de 2020
We are dealing with UTM coords here, and we have: Northings, Eastings, and gridded Elevation-values.
dimensions--
x is 1x30
y is 1x41
z is 41x30
Currently this meshes well into a surface.
How can I export this data into rows of:
x1, y1, z1;
x2,y2,z2;
....
xend,yend,zend
?
3 comentarios
Walter Roberson
el 23 de Sept. de 2020
You can pass a level list to contour() . If you are only passing one value, then the trick is to pass it twice:
contour(x, y, z, 2) %asks for two contours
contour(x, y, z, [2 2]) %asks for a contour at z = 2
Interpreting the contour matrix that you can return from contour() is a nuisance. There are some File Exchange submissions that make it easier.
Respuesta aceptada
David Hill
el 20 de Sept. de 2020
Not sure I understand your question.
[X,Y]=meshgrid(x,y);%assume this is what you want
data=[X(:),Y(:),z(:)];
5 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!