How to draw 2D object with plot 3D matlab

How to draw 2D object with plot 3D matlab
I have 2 circle and 2 radius ( a and b )and height (h) between two circle.
draw this 2D figure to 3D figure with plot or surf

 Réponse acceptée

Matt J
Matt J le 15 Avr 2021
Modifié(e) : Matt J le 15 Avr 2021

1 vote

The command cylinder() will be helpful. This example in particular,

6 commentaires

Moufid Meddeb
Moufid Meddeb le 15 Avr 2021
thank u for ur answer sir
but I did that before, but didn't get 2 lines same in the figure
i get that
Matt J
Matt J le 15 Avr 2021
That is definitely a mistake.
Moufid Meddeb
Moufid Meddeb le 16 Avr 2021
like this
Matt J
Matt J le 16 Avr 2021
Modifié(e) : Matt J le 16 Avr 2021
r=____________
[X,Y,Z] = cylinder(r,1000);
surf(X,Y,Z,'EdgeColor','none')
Moufid Meddeb
Moufid Meddeb le 16 Avr 2021
how u do this , i have two radius and two circle ??
Matt J
Matt J le 16 Avr 2021
As I said, the example at the link I gave you is very similar to what you are trying to do.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Performance 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!

Translated by