![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/543776/image.png)
Creating plans and 3D shapes with x,y,z coordinates.
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Raphael Krier
le 8 Mar 2021
Commenté : KALYAN ACHARJYA
le 10 Mar 2021
Hi everyone,
I am trying to generate different 3D shapes with matlab. The idea is to represent a coral reef (picture attached). I could like the edge of the reef to have a concave shape. To get this shape I am using the elipse equation:
t = linspace(0,pi);
xe = 4 + 4*cos(t);
yconv = 5 + 5*sin(t);
plot(yconv,xe)
axis equal
I am trying to think of a way to do it but I am not sure how to start it.
Any ideas would be great. Thanks a lot
Raphael
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 9 Mar 2021
There may be subjective related toolboox/CAD tool to design such surfaces. You may try with surf plot, here on eexample. Here you have to find the values of the z-direction array elements, such that it reflects the same plot.
a=1:10;
b=1:10;
c=[ones(4,10);1.5*ones(2,10);2*ones(4,10)];
% Add step in c data
surf(a,b,c);
grid on;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/543776/image.png)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh 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!