Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Manufacturing Engineering has two major fields: production and testing. Production Engineering focuses on the design of the process of developing tools and products, while Test

Manufacturing Engineering has two major fields: production and testing. Production Engineering focuses on the design of the process of developing tools and products, while Test Engineering focuses on the verification of the production methods used and the quality of the items produced. Though the latter is the smaller half of Manufacturing Engineering, it is incredibly important in determining the specifications and safety of products.
Suppose a test engineer works at a firm that manufactures electric motors for the hoists in cranes. These motors must raise a given load into the air. To minimize testing times, the test engineer wants to write a script which determines how long it will take a given'motor to raise a given load, given the motor's' already rated powers [W] and efficiencies %. The output power of a motor is given in Equation 1:
Pout=Pint
where is the efficiency of the motor.
You are given the data file MA1_datamat, which contains the string Names and the matrix Specs. Names is a string array containing the name of each motor being tested. Specs is a 2-row numerical matrix containing the power [W] of each motor in row 1 and the efficiency [%] of each motor in row 2. Each motor name in Names corresponds to a power and efficiency rating for that motor in the same column of Spees.
Task:
TASK 1:
Load in the provided data file, MA1 data.mat. Prompt the user to select one of the input motors for testing. Prompt the user to enter a mass to be lifted by the motor kg and the height that mass will be raised to [m]. Calculate the amount of time it will take for the selected motor to raise the inputted load to the specified height. Output to the command window the time it will take for the motor to raise the load. Include the motor's name, the load lifted, and the height it was lifled to.
TASK 1:
Load in the provided data file, MA1_data.mat. Prompt the user to select one of the input motors for testing. Prompt the user to enter a mass to be lifled by the motor and the height that mass will be raised to [m]. Calculate the amount of time it will take for the selected motor to raise the inpulted load to the specified height. Output to the command window the time it will take for the motor to raise the load. Include the motor's name, the load lifted, and the height it was lifted to.
NOTE (avoid hardcoding): Your code should produce different results if the user selects a different motor name from Names. The list of motor names displayed should change if the number of motors in the data changes.
TASK 2:
Perform a comparison of all the given motors. Prompt the user to enter a common given load [kg] and a common height [m] which will be used to test all the motors. For each motor, calculate the amount of time it will take the load to be rased to the imputled height. Create a matrix which contains the rated power of each motor [W] in row 1, the efficiency of each motor % in row 2, the load lifted by the motors |kg| in row 3, the height of the load rased in row 4, and the time it takes to raise the load with each motor |5| in row 5. Export this matrix to a csv file named Task2_Results.esv.
NOTE (avoid hardcoding): Your code should produce different results if a different number of motors are given in MA1_data.mat. The final number of columns for the matrix should be equal to the number of motors given and change if the number of motors given changes.
TASK 3:
Generate a scatter plot that displays the results of the motor comparison by showing the output power for each motor along the x-axis and the time required by that motor to lift the load on the y-axis. Also include the following formatting on your plot:
X-axis label
Title
Y-axis label
Gridlines
image text in transcribed

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

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions