In: Mechanical Engineering
A machine cuts N pieces of a pipe. After each cut, each piece of
the pipe is weighed and its length is measured. These two values
are stored in a matrix called pipe where the first column is the
length and the second column is the weight. Each row represents the
weight and length of a cut piece of pipe. Ignoring units, the
weight is supposed to be between 2.1 and 2.3, inclusive. The length
is supposed to be between 10.3 and 10.4, inclusive.
Create a flow chart to do the following, using MATLAB syntax in all
blocks: Count how many rejects there are. A reject is any piece
that has an invalid weight and/or length. Return the number of
rejects Return the percentage of the total number of parts that
are rejects