How can I do a star?

10 views (last 30 days)
Ana Beatriz Baptista
Ana Beatriz Baptista on 26 Dec 2020
Answered: Image Analyst on 26 Dec 2020
How can I draw a simple star?

Accepted Answer

Image Analyst
Image Analyst on 26 Dec 2020
Did you click the star tag link on the right? If you had, you would have come up with plenty of hits, such as this one where I gave code to draw a star:

More Answers (1)

Matt J
Matt J on 26 Dec 2020
Edited: Matt J on 26 Dec 2020
If you know the vertices of the star, you can just use the line() or plot() command.

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!