Question: Can you provide MATLAB code for this? a. Write a function to convert polar coordinates of a point to Cartesian coordinates. Function should take two

Can you provide MATLAB code for this?
a. Write a function to convert polar coordinates of a point to Cartesian coordinates. Function should take two input arguments r and theta where r must be a positive number and theta must be in degrees. The function should then calculate the Cartesian coordinates x and y of the point and return them. The function name and definition should look like, function [x, y] = PolarToCart(r, theta) b. Use the function you created and find the Cartesian coordinates of the following polar coordinates. 1. r = 5 and theta = 30 degree 2. r = 6 and theta = -25 degree 3. r = 7 and theta = 300 degree 4. r = 8 and theta = 90 degree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
