Question: Question 3: Points: ( 18) Write two functions rect2polar and polar2rect that convert coordinates from rectangular to polar form, and vice versa, using the following

 Question 3: Points: ( 18) Write two functions rect2polar and polar2rect

that convert coordinates from rectangular to polar form, and vice versa, using

Question 3: Points: ( 18) Write two functions rect2polar and polar2rect that convert coordinates from rectangular to polar form, and vice versa, using the following equations, where the angle (theta) is expressed in degrees: From Polar to Rectangular x=r.cos(O) y = r.sin(e) From Rectangular to Polar r= V(x2 + y2) 0 = tan = Points: ( 714) Question 1: Write MATLAB statements to accomplish the following: a) Create three vectors using MATLAB syntax: A = [2,4,6,...,20), B = [-21.-20.....-12), C = zeros(1,10). b) Create a matrix Matx whose rows are A, B and C in that order. c) Create a matrix Maty which is Matx with an extra column to sum up all the rows: the first element of the new column is the sum of the entire row one of Matx and so on. d) Print all the elements of the 2nd row of Maty. e) Replace the seventh column of Matx with zeros. f) Print the first five elements of rows 1 and 2 from Matx. g) Assign the size of Maty to a variable size_Maty. What is the value of size_Maty? Question 2: Points: 16) Plot the function 5X e6.4 y%3D 31 0.3x from-5 to 5 with steps of 0.1 using a dotted black line

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!