Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started