3d surface help
Mostra commenti meno recenti
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 :)
Risposte (1)
KALYAN ACHARJYA
il 22 Lug 2019
Modificato: KALYAN ACHARJYA
il 22 Lug 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 Commenti
Naftalie Rianty
il 22 Lug 2019
KALYAN ACHARJYA
il 22 Lug 2019
Modificato: KALYAN ACHARJYA
il 22 Lug 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!
Categorie
Scopri di più su Surface and Mesh Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!