Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

Persuading Your Audience Strategies for

Answered: 1 week ago