Question: Please DO NOT use For and While loops in the solution The target specification for the nominal distance between faces on the hexagonal bolt head
Please DO NOT use For and While loops in the solution
The target specification for the nominal distance between faces on the hexagonal bolt head is 0.50 inches. The company has a goal that this new process will produce bolts with a tolerance of +0.01 inches on this dimension, meaning the bolts produced will have a face distance equal to or between 0.49 and 0.51 inches. Code has already been provided to define column vector of 1000 measurements of bolts collected from a manufacturing run into a single input variable named boltMeasurements. Add code to the script to perform the following tasks using the data in the boltMeasurements vector and assign the results to the indicated variable names. 1. Using the values in the boltMeasurements vector and build a 20 array named missedBy that collects any measurements that miss the tolerance as follows: Column 1 of missedBy should contain the position of the measurement in the column vector boltMeasurements. For example, if the measurements in rows 4, 10, 20 of boltMeasurements are the only ones that miss the tolerance, then missedBy is a 20 array with three rows and two columns Column 1 of missedBy should be the three values (4, 18, and 2e). Column 2 of missedBy must contain a value equal to the value of the difference between the measurement and the closest limit of the tolerance range. For example, a measurement of 0.47 in row 4 of boltMeasurements would mean a value of 0.47 -0.49 = -0.02 should be assigned to row 1 and column 2 of missedBy. A measurement of 0.55 in row 10 of boltMeasurements would mean a value of 0.55-0.51 = 0.04 should be assigned to assigned to row 2 and column 2 of missedBy. The values in the missedBy vector should be in the same order the associated measurements appear in the input variable boltMeasurements i.e. missedBy is sorted by its column 1. 2. Compute the percentage of the measurements that meet the tolerance (i.e. 0.49 SIS 0.5l) and assign this value to the output variable percentPassed. 3. Build a column vector passedTolcheck that contains all the measurements that pass the tolerance check and none of the values that failed the check. 4. Compute the mean, standard deviation, median, and range of measurements in the column vector passed Tolcheck. Put these measurements in the following named variables -passed Bolts_mean, passedBolts_std, passed Bolts_median, and passedBolts_range. Note the variable boltMeasurements is assigned values by the first line of the code. Do not overwrite these values in your code. Do not use any while or for loop in your solution Since you only have one attempt, it is strongly suggested that you build your script in Matlab on your local device and then complete the quiz. DO NOT USE clear, clc, or close all in your script. Script Save e Reset MATLAB Documentation 1 boltMeasurements = 0.5-0.6875*rand (1800,1); 2 x write your script below as per problem statement above Run Script The target specification for the nominal distance between faces on the hexagonal bolt head is 0.50 inches. The company has a goal that this new process will produce bolts with a tolerance of +0.01 inches on this dimension, meaning the bolts produced will have a face distance equal to or between 0.49 and 0.51 inches. Code has already been provided to define column vector of 1000 measurements of bolts collected from a manufacturing run into a single input variable named boltMeasurements. Add code to the script to perform the following tasks using the data in the boltMeasurements vector and assign the results to the indicated variable names. 1. Using the values in the boltMeasurements vector and build a 20 array named missedBy that collects any measurements that miss the tolerance as follows: Column 1 of missedBy should contain the position of the measurement in the column vector boltMeasurements. For example, if the measurements in rows 4, 10, 20 of boltMeasurements are the only ones that miss the tolerance, then missedBy is a 20 array with three rows and two columns Column 1 of missedBy should be the three values (4, 18, and 2e). Column 2 of missedBy must contain a value equal to the value of the difference between the measurement and the closest limit of the tolerance range. For example, a measurement of 0.47 in row 4 of boltMeasurements would mean a value of 0.47 -0.49 = -0.02 should be assigned to row 1 and column 2 of missedBy. A measurement of 0.55 in row 10 of boltMeasurements would mean a value of 0.55-0.51 = 0.04 should be assigned to assigned to row 2 and column 2 of missedBy. The values in the missedBy vector should be in the same order the associated measurements appear in the input variable boltMeasurements i.e. missedBy is sorted by its column 1. 2. Compute the percentage of the measurements that meet the tolerance (i.e. 0.49 SIS 0.5l) and assign this value to the output variable percentPassed. 3. Build a column vector passedTolcheck that contains all the measurements that pass the tolerance check and none of the values that failed the check. 4. Compute the mean, standard deviation, median, and range of measurements in the column vector passed Tolcheck. Put these measurements in the following named variables -passed Bolts_mean, passedBolts_std, passed Bolts_median, and passedBolts_range. Note the variable boltMeasurements is assigned values by the first line of the code. Do not overwrite these values in your code. Do not use any while or for loop in your solution Since you only have one attempt, it is strongly suggested that you build your script in Matlab on your local device and then complete the quiz. DO NOT USE clear, clc, or close all in your script. Script Save e Reset MATLAB Documentation 1 boltMeasurements = 0.5-0.6875*rand (1800,1); 2 x write your script below as per problem statement above Run Script
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
