(Solved) : Part Polar Rectangular Funetion Eate Mat Ab Unction Th T Wil Convert Force Olar Orm Rectan Q26997867 . . .
Matlab function problem, please help.
Part A: Polar to Rectangular Funetion eate a MAT .AB unction th t wil convertおforce olar orm to rectan alar form le unction should have two m ut argument , the magnitude aro phase m degree of the orce le tanctio should have two output a urnen s t se Hom onent and y componen of he force Test your function by completing the table below. Check reaults with your T.A x-component y-component = 15230, N | 12.99 = 2o2 1500 N | -17.32 = 75 -140° N | .57.5 7.5 48.21 PASTE MATLAB CODE FOR RECTANGULAR TO POLAR FUNCTION HERE funation [x conp, y conp 1-convert polar to_rect (nag,phase end Part B: Resultant Force Calculator Create a MATLAB function that will compute the resaltant foree based on individual forces entered by the user The function should have one input argument, the number of forces the user wideso enter. 1 · The function should hav¢ our output rgument the magnitude and phase of the resultant force and the x and y components of the resultant force · e function should be e up o ecommodate any combination of forms for the user’s in other wor s ifthe user has $ forces to eater three ofthem could be in polar form and two could be in rectangular form. . orce When the user enters a foree, the valucs the user enierod should be displayed in the command window. The fanction 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 shoaldthe function writen 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 foree in another color (again, your choice) Hist: plot { [x,划, 【y:, y: 1 . ‘k-., will draw a black line from, the point (xay.) to the point (xoYs). Test your funecion for the set of forces shown in the table below. Check resuls with the T.A. Then enter the output produced in the command window in the table below and paste the plot where indicated Angle X-component Function F1 F2 F3 F4 Resultant Force MagnitudA Y-Component 130 225 PLOT: PASTE MATLAB CODE FOR RESULTANT FORCE CALCULATOR FUNCTION HERE Show transcribed image text
Expert Answer
Answer to Part Polar Rectangular Funetion Eate Mat Ab Unction Th T Wil Convert Force Olar Orm Rectan Q26997867 . . .
OR