Question: 2 . 1 3 A two - dimensional vector in a Cartesian plane can be represented in either rect - angular coordinates ( x ,

2.13 A two-dimensional vector in a Cartesian plane can be represented in either rect-
angular coordinates (x,y) or the polar coordinates (r,), as shown in Figure 2.22.
The relationships among these two sets of coordinates are given by the following
equations:
x=rcos
y=rsin
r=x2+y22
=tan-1yx
Use the MATLAB help system to look up function atan2, and use that func-
tion in answering the following questions.
(a) Write a program that accepts a two-dimensional vector in rectangular coor-
dinates and calculates the vector in polar coordinates, with the angle
expressed in degrees.
(b) Write a program that accepts a two-dimensional vector in polar coordinates
(with the angle in degrees) and calculates the vector in rectangular coordinates.
 2.13 A two-dimensional vector in a Cartesian plane can be represented

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!