How to draw a cylindrical panel using matlab

2 Ansichten (letzte 30 Tage)
Twinkle C M
Twinkle C M am 28 Mär. 2021
Kommentiert: Adam Danz am 29 Mär. 2021
I would like to draw a cylindrical panel using matlab code. please help.
  4 Kommentare
Adam Danz
Adam Danz am 29 Mär. 2021
Bearbeitet: Adam Danz am 29 Mär. 2021
@Twinkle C M I formatted your code using the text-code toggle; please format your code in the future to increase your chances that people will want to read the question/comment.
I also added a semicolon in this line so the command window isn't flooded with outputs: z(i,j)=z(i,j); & z = repmat...
Adam Danz
Adam Danz am 29 Mär. 2021
If you add
axis equal
view(30,15)
and change the surf command to
surf(x,y,z, 'faceColor', 'flat','LineStyle', 'none');
you get close to what you want. You may need to increase the width (z).

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by