Question: MATLAB FUNCTIONS PROBLEM, please help! Part A: Polar to Rectangular Function Create a MATLAB function that will convert a force in polar form to rectangular

MATLAB FUNCTIONS PROBLEM, please help!

MATLAB FUNCTIONS PROBLEM, please help! Part A: Polar to Rectangular Function Createa MATLAB function that will convert a force in polar form to

Part A: Polar to Rectangular Function Create a MATLAB function that will convert a force in polar form to rectangular form. The function should have two input arguments, the magnitude and phase (in degrees) of the force The function should have two output arguments, the x-component and y-component of the force Test your function by completing the table below. Check results with your T.A Force x-component y-component F1 152300 N 12.99 F, 20 1500 N |-17.32 Fa = 75 L-1400 N | -57.5 7.5 10 -48.21 PASTE MATLAB CODE FOR RECTANGULAR TO POLAR FUNCTION HERE: function [x comp, y_ comp]-convert_polar_to_rect (mag,phase) x_comp-mag*cosd (phase) y comp-mag*sind(phase) end Part B: Resultant Force Calculator Create a MATLAB function that will compute the resultant force based on individual forces entered by the user The function should have one input argument, the number of forces the user wishes to enter " The function should have four output arguments: the magnitude and phase of the resultant force and the x and y components of the resultant force " The function should be set up to accommodate any combination of forms for the user's forces; in other words, if the user has 5 forces to enter, three of them could be in polar form and two could be in rectangular form. * *" When the user enters a force, the values the user entered should be displayed in the command window. The function should then include code to ask the user if the values were entered correctly, and if not, allow the user to re-enter the force values. Use a while loop for this

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!