Problem

Cartesian to cylindrical and spherical coordinate conversions. (a) Write functions c...

Cartesian to cylindrical and spherical coordinate conversions. (a) Write functions car2Cyl() and car2Sph() in MATLAB that convert the coordinates of a point given in the Cartesian coordinate system to the coordinates in the associated cylindrical and spherical coordinate systems [Fig.1.18(a) and (b)], respectively. Assume that all lengths are expressed in meters, while the angles φ and θ should be expressed in radians. Check cases when some of the input data are zero. (b) Repeat (a) but for the conversions in the opposite direction, namely, write functions cyl2Car() and sph2Car() to convert cylindrical and spherical coordinates, respectively, to Cartesian coordinates of a point. (car2Cyl.m, car2Sph.m, cyl2Car.m, and sph2Car.m on IR)

Reference: Fig.1.18(a) and (b)

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search