Question: Matlab function, please help PASTE MATLAB CODE FOR RECTANGULAR TO POLAR FUNCTION HERE function x comp, y comp]-convert polar to rect (mag,phase) x comp nag

Matlab function, please help  Matlab function, please help PASTE MATLAB CODE FOR RECTANGULAR TO POLAR

PASTE MATLAB CODE FOR RECTANGULAR TO POLAR FUNCTION HERE function x comp, y comp]-convert polar to rect (mag,phase) x comp nag cond (phase) y_comp-mag sind (phase):l 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. 1 " The function should have four output arguments: the magnitude and phase of the resultant force and the x and y components 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 - If a force is entered in polar form, the function should call the function written in Part A to convert it to rectangular form The function should also produce a single plot showing the individual forces in one color (your choice) and the resultant force in another color (again, your choice) Hint: plot((x.x;],[y:V2],'k-') will draw a black line from the point (.yi) to the point (x.y) Test your Then enter the output produced in the command window in the table below and paste the plot where indicated. funetion for the set of forces shown in the table below. Check results with the TA Function Magnitude Angle X-com Y-Com F2 F3 F4 130 10 PLOT: PASTE MATLAB CODE FOR RESULTANT FORCE CALCULATOR FUNCTION HERE

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!