Question: This is done in MATLAB A three dimensional vector can be represented in either rectangular coordinates (x,y, z) or the spherical coordinates (r, , ).
This is done in MATLAB
A three dimensional vector can be represented in either rectangular coordinates (x,y, z) or the spherical coordinates (r, , ). The relationships between these two sets ofcoordinates x = r cos() cos(8) y = r cos() sin(8) z r sin(9) are given by the following equations: = tan-1- = tan-1 x2 +y Write a program that prompts the user for a vector in rectangular coordinates and calculates the vector in spherical coordinates, with the angles and expressed in degrees
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
