Afficher commentaires plus anciens
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 :)
Réponses (1)
KALYAN ACHARJYA
le 22 Juil 2019
Modifié(e) : KALYAN ACHARJYA
le 22 Juil 2019
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;

2 commentaires
Naftalie Rianty
le 22 Juil 2019
KALYAN ACHARJYA
le 22 Juil 2019
Modifié(e) : KALYAN ACHARJYA
le 22 Juil 2019
If X and Y are vectors, length(X)=n and length(Y)=m, where [m,n]=size(Z), must be satisfied.
Or
tri = delaunay(x,y);
trisurf(tri,x,y,z);
Do change as per your requirements!
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!