so i have a xyz coordinates like this x = [701850.324 701850.394 701850.512 701850.592 701850.66 701850.657 701850.592 701850.508 701850.388 701850.319 701850.324 701850.384 701850.504 701850.579 701850.649] y = [9309973.758 9309973.034 9309971.834 9309971.021 9309970.33 9309970.327 9309971.02 9309971.832 9309973.033 9309973.758 9309973.758 9309973.032 9309971.83 9309971.011 9309970.319] z = [19.725 19.84 19.796 19.82 19.79 20.89 20.909 20.903 20.881 20.935 22.622 22.495 22.573 22.508 22.57] and i want to make a 3d models form those coordinates i try to use mesh, giddata, surf function but still cant build the 3d models. i hope you guys can help me to solve my problem. thanks :)

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-7-22
编辑:KALYAN ACHARJYA 2019-7-22
x = [701850.324 701850.394 701850.512 701850.592 701850.66 701850.657 701850.592 701850.508 701850.388 701850.319 701850.324 701850.384 701850.504 701850.579 701850.649]
y = [9309973.758 9309973.034 9309971.834 9309971.021 9309970.33 9309970.327 9309971.02 9309971.832 9309973.033 9309973.758 9309973.758 9309973.032 9309971.83 9309971.011 9309970.319]
z = [19.725 19.84 19.796 19.82 19.79 20.89 20.909 20.903 20.881 20.935 22.622 22.495 22.573 22.508 22.57]
plot3(x,y,z)
grid on;
uu.png

2 个评论

Do you know how to create a surface using those coordinates sir?
For surface plot, z must be matrix Read here (Highly Recomended)
If X and Y are vectors, length(X)=n and length(Y)=m, where [m,n]=size(Z), must be satisfied.
Or
surf plot- Z must be a matrix, not a scalar or vector, please see here
tri = delaunay(x,y);
trisurf(tri,x,y,z);
Do change as per your requirements!

请先登录,再进行评论。

类别

Community Treasure Hunt

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

Start Hunting!

Translated by