Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Serial 1001 1002 1003 1004 1005 1006 1007 1008 1009 Diam (mm) 73.28 74.66 77.12 75.08 74.20 76.79 76.48 72.88 73.99 On an assembly line,

Serial

1001

1002

1003

1004

1005

1006

1007

1008

1009

Diam (mm)

73.28

74.66

77.12

75.08

74.20

76.79

76.48

72.88

73.99

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 (4) inputs and has (2) outputs: the first line of your function should look like:

Function [goodSerials, Location]=LastName_FirstName (Serial, Diam, D, tol)

goodSerials is a vector containing only the serial numbers of acceptable parts

Location is a 9-element vector that indicates where each part goes based on a

numerical assignment of 1, 2 or 3.

If the diameter is too small, it should be sent to location 1 to be scrapped and

recycled.

If the part has an acceptable diameter it should be sent to location 2 to be

distributed.

If the part has too large of a diameter it should be sent to location 3 to be filed

down to a smaller diameter and checked again later.

Run your function using the Serial Numbers and Diameter data in the table above,

a desired diameter of 85 mm, and a tolerance of 2.0mm. Define all inputs in

the command window.

Copy the commands used to define your inputs and the results when you run your function, and paste into your function as comments

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions