Question: matlab NN 3.7 Develop an M-file to determine polar coordinates as described in Prob. 3.6. However, rather than designing the function to evaluate a single

NN 3.7 Develop an M-file to determine polar coordinates as described in Prob. 3.6. However, rather than designing the function to evaluate a single case, pass vectors of x and y. Have the function display the results as a table with columns for x, y, r, and 0. Test the program for the cases outlined in Prob. 3.6. PROGRAMMING WITH MATLAB the order term of your choosing. For each of the pre- ceding, compute and display the percent relative error as The dificulty arises for the other cases. The following summarizes the possibilities: error the series approximation LOVE tan tan /x+ /- 58% 69 1/2 As a test case, employ the program to compute sint019) for up to and including eight terms that is, up to the term "/15! 306 Two distances are required to specily the location of a point relative to an origin in two-dimensional space P3.6) The horizontal and vertical distances (x,y) in Cartesian coordinates The radius and angle (r, 0) in polar coordinates It is relatively straightforward to compute Cartesian Coor- dinates (x, y) on the basis of polar coordinates F.0). The reverse process is not so simple. The radius can be computed by the following formula: Write a well-structured M-file using if...elseif structures to calculater and as a function of x and y. Express the final results for in degrees. Test your program by evaluating the following cases V + If the coordinates lie within the first and fourth coordi- nates (ie. x > 0), then simple formula can be used to compute : - 1 0 0 = tan 3.7 Develop an M-file to determine polar coordinates as described in Prob. 36. However, rather than designing the function to evaluate a single case, pass vectors of sandy Have the function display the results as a table with columns for y, and . Test the program for the cases outlined in Prob. 3.6. 3.8 Develop an M-file function that is passed a numeric grade from 0 to 100 and returns a letter grade according the scheme: Letter Criteria 90 S numeric grade S 100 80 numeric grade 90 70s numeric grade 0), then simple formula can be used to compute : - 1 0 0 = tan 3.7 Develop an M-file to determine polar coordinates as described in Prob. 36. However, rather than designing the function to evaluate a single case, pass vectors of sandy Have the function display the results as a table with columns for y, and . Test the program for the cases outlined in Prob. 3.6. 3.8 Develop an M-file function that is passed a numeric grade from 0 to 100 and returns a letter grade according the scheme: Letter Criteria 90 S numeric grade S 100 80 numeric grade 90 70s numeric grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
