Answered step by step
Verified Expert Solution
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 :
where is the efficiency of the motor.
You are given the data file MAdatamat, 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 row numerical matrix containing the power W of each motor in row and the efficiency of each motor in row Each motor name in Names corresponds to a power and efficiency rating for that motor in the same column of Spees.
Task:
TASK :
Load in the provided data file, MA 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 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 :
Load in the provided data file, MAdata.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 :
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 the efficiency of each motor in row the load lifted by the motors in row the height of the load rased in row and the time it takes to raise the load with each motor in row Export this matrix to a csv file named TaskResults.esv.
NOTE avoid hardcoding: Your code should produce different results if a different number of motors are given in MAdata.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 :
Generate a scatter plot that displays the results of the motor comparison by showing the output power for each motor along the axis and the time required by that motor to lift the load on the axis. Also include the following formatting on your plot:
Xaxis label
Title
Yaxis label
Gridlines
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started