The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
University
| Teaching Since: | Apr 2017 |
| Last Sign in: | 438 Weeks Ago, 1 Day Ago |
| Questions Answered: | 9562 |
| Tutorials Posted: | 9559 |
bachelor in business administration
Polytechnic State University Sanluis
Jan-2006 - Nov-2010
CPA
Polytechnic State University
Jan-2012 - Nov-2016
Professor
Harvard Square Academy (HS2)
Mar-2012 - Present
Â
The easiest way to draw a star in MATLAB ® is to use polar coordinates. You simply need to identify points on the circumference of a circle and draw lines between those points. For example, to draw a five-pointed star, start at the top of the circle (θ = π/2, r = 1) and work counterclockwise (Figure P8.17).
Prompt the user to specify either a five-pointed or a six-pointed star, using a menu. Then create the star in a MATLAB ® figure window. Note that a six-pointed star is made of three triangles and requires a strategy different from that used to create a five-pointed star.
Â
Â
Â
-----------