Plot 3d, z = f(x,y)
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
http://pastebin.com/B2m2VPrs I have this data. I want to made a surface which will represent this data. Any idea how to do it : ? I tried a bit, but i feel green in making 3dplots in matlab.
0 commentaires
Réponses (4)
Youssef Khmou
le 26 Mar 2013
Modifié(e) : Youssef Khmou
le 26 Mar 2013
hi, try :
plot3(X,Y,Z)
sqrt(120)
X(end+1)=X(end);
Y(end+1)=Y(end);
Z(end+1)=Z(end);
X=reshape(X,11,11);
Y=reshape(Y,11,11);
Z=reshape(Z,11,11);
figure,surf(X,Y,Z); % OR
figure, mesh(X,Y,Z)
0 commentaires
Piotr
le 26 Mar 2013
1 commentaire
Youssef Khmou
le 26 Mar 2013
more resolution : %2nd part
X=interp2(X,2);
Y=interp2(Y,2);
Z=interp2(Z,2);
surf(X,Y,Z)
ethan josue
le 14 Sep 2023
plot3(X,Y,Z)
sqrt(120)
X(end+1)=X(end);
Y(end+1)=Y(end);
Z(end+1)=Z(end);
X=reshape(X,11,11);
Y=reshape(Y,11,11);
Z=reshape(Z,11,11);
figure,surf(X,Y,Z); % OR
figure, mesh(X,Y,Z)
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!