Answered step by step
Verified Expert Solution
Question
1 Approved Answer
On an assembly line, a machine is used to record the diameters and serial numbers of parts (bolts) as they go by. The part serial
On an assembly line, a machine is used to record the diameters and serial numbers of parts (bolts) as they go by. The part serial number is recorded in a vector, Serial, and its diameter is recorded in a separate vector, Diam. Create a MATLAB function that takes (3) inputs: a scalar diameter, the desired diameter, and the tolerance for the diameter. 1. Output 1 is a 1 or a 0.1 if the serial number is within the tolerance, 0 if not 2. Output 2 should be called Location, a scalar that indicates where each part goes based on a numerical assignment of 1, 2 or 3. a. If the diameter is within the acceptable range, it should be sent to location 1 for use in the final product. b. If the part has too large of a diameter it should be sent to location 2 to be machined down in diameter. c. If the part has too small of a diameter it should be sent to location 3 to be scrapped so the material can be recycled. a Matlab Script to do the following: Enter the data presented above as appropriate vectors Run your function for each pair of serial # and diameter using a desired diameter of 100 mm, and a tolerance of plusorminus 1.5 mm. Find which serial numbers are within the tolerance & display them in a vector called Good Bolts
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