Question: 2 . 1 3 A two - dimensional vector in a Cartesian plane can be represented in either rect - angular coordinates ( x ,
A twodimensional vector in a Cartesian plane can be represented in either rect
angular coordinates or the polar coordinates as shown in Figure
The relationships among these two sets of coordinates are given by the following
equations:
Use the MATLAB help system to look up function atan and use that func
tion in answering the following questions.
a Write a program that accepts a twodimensional 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 twodimensional vector in polar coordinates
with the angle in degrees and calculates the vector in rectangular coordinates.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
