Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write the matlab code for this problem .. thank you Problem 2: The easiest way to draw a star in MATLAB is to use

Please write the matlab code for this problem .. thank you image text in transcribed
image text in transcribed
Problem 2: 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 as shown in Figure 1. 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 Your six-pointed star should look like the one in figure 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions