Question: Write a MATLAB program to termine how many ban from a triun bar forging en meet the manufacturing standards for sale. The program should also



Write a MATLAB program to termine how many ban from a triun bar forging en meet the manufacturing standards for sale. The program should also compute the average long weige with und average height of the bars that meet the manufacturing Mandards for sale The control data from the titanium bar forging sun was stored in the MATLAB workspace fie barata. The data is stored in a 2 antay named Barbati the first con contains the bar engths in the second column contains the bar widths in mm. the third column contains the bar begin om and the fourth con contain the bar weighing. The MATLAB statement Tondeurdatamatthroats wild the variable named Barbat afrom the barata.nattie into the MATLAB Workspace Male were the barbata o le is in the same folder ade your program Bars have a nominat length of 10 mm, a nominal width of 4 mm and a nominaleht of 2mm. Bars that meet the manufactured standards for sale should meet of the following criten 1. Who clue of the nominal length, the diffence between your bar and the nominw bar should be within osworth nominat terhin both director) 2 Width within 0.5% of the nominal width a Height within 0.25% of the nominal height Weight hout exceed 3029 The program should hearty display the following 1 Number of bars that meet the manufacturing standard, assign it to number of good_bas 2. Average length width and height of the bars that meet the manufacturing standard, intentang_length, avg.width and av height respectively 3 Minimum weight of the bars that meet me manufacturing standard, assign it to min_weight I Make sure that The program dearly display the number of bars, average dimensions, and minimum weight of the bars that meet the standard 2. The program will work for any bar data of the specified form (N by 4 atay. no just for the data in the supplied MATLAB workspace 3. neon.mn max etc. may help Script Rese MATLAB Documentation Extract length, width, belight, and weight of bars from titta length width height weight Til taste in length, not with, and final might of bar in Length 14 novih Is 1 xrind boolean array of good bars, should be a no vector with other or 1, Is the total number of har booleandoddar. rind Indices for good bars, should be at vector with indices of tood has only, it is the number of food bars odharade mind Master of bars that meet the manufacturing standard, as it to number of_cobars, you can not use length function since lungth has been redefined at 14 her_of_cod bars Find Average length width and height of the bars that meet the manufacturing standard, assign them to we length, we width, and av. Might respectively. The good w width ind in weight of the bars that meet the manufacturing standard, assign it to min welcht Wit MATLABS programomine how many burs Somalilanum bar torging in the manufacturing standards for the program should computer the average lenge with antage of the bors that meet the manufacturing and for They are number foring run woned in the MATLAB W. The data din 20 yediat the solution en the sound on con the bar within the column contains the basi wid the form in the bar wighting The MATLAB tartottata' wad the variable named that from the battle into MATLAB Work Mike sure the art in their as you program nahongth of tomaromat width 4 mm and nomight Bars that meet the manufacturing standards for sale should meet it at the owner ng with include of the nomination, the between your brand the nominal bar should be within the nominal length in borection 2. Wiwit of the nom with Height within of the nomine Wighthoortoed 1020 The program should clearly display the following: 1. Number of bars that meet the manufacturing standard, assign it to number of good bars 2. Average lengtly, width and height of the bars that meet the manufacturing standard, assign them to avg_length, avg_width, and avg_height respectively 3. Minimum weight of the bars that meet the manufacturing standard, assign it to min_weight Make sure that 1. The program clearly displays the number of bars, average dimensions, and minimum weight of the bars that meet the standard 2 The program will work for any bar data of the specified form (N by 4 array, not just for the data in the supplied MATLAB workspace ile 3. abs), mean(min), max() size() eto, may help Script e Reset MATLAB DO 5 Load the data tiart from baratamat load tatt. tinut) Extract length, with, height, and weight or bars from tisarbata length width height Ndefine nominal length, nominal width and nominal higit of bar in 13 nonLength howth 11 Find boolean array of good bars, should be and vector with either word, is the total number of bars is boonGoodilar Wind Indles formed ans, should be vector with indices of food tars only, is the number of food bars collars Finder of bars that muut the manufacturing standard, asten it to number of gooers, you cannot length function bere since Ingth has nerede ember_of_good bars in Average length, wath, und height of the bars that meet the manufacturine standard, assign them to avength, w with, and whalent respeitly. ave_width 11 what in wint of the bars that the imafacturing standard, as it het Write a MATLAB program to termine how many ban from a triun bar forging en meet the manufacturing standards for sale. The program should also compute the average long weige with und average height of the bars that meet the manufacturing Mandards for sale The control data from the titanium bar forging sun was stored in the MATLAB workspace fie barata. The data is stored in a 2 antay named Barbati the first con contains the bar engths in the second column contains the bar widths in mm. the third column contains the bar begin om and the fourth con contain the bar weighing. The MATLAB statement Tondeurdatamatthroats wild the variable named Barbat afrom the barata.nattie into the MATLAB Workspace Male were the barbata o le is in the same folder ade your program Bars have a nominat length of 10 mm, a nominal width of 4 mm and a nominaleht of 2mm. Bars that meet the manufactured standards for sale should meet of the following criten 1. Who clue of the nominal length, the diffence between your bar and the nominw bar should be within osworth nominat terhin both director) 2 Width within 0.5% of the nominal width a Height within 0.25% of the nominal height Weight hout exceed 3029 The program should hearty display the following 1 Number of bars that meet the manufacturing standard, assign it to number of good_bas 2. Average length width and height of the bars that meet the manufacturing standard, intentang_length, avg.width and av height respectively 3 Minimum weight of the bars that meet me manufacturing standard, assign it to min_weight I Make sure that The program dearly display the number of bars, average dimensions, and minimum weight of the bars that meet the standard 2. The program will work for any bar data of the specified form (N by 4 atay. no just for the data in the supplied MATLAB workspace 3. neon.mn max etc. may help Script Rese MATLAB Documentation Extract length, width, belight, and weight of bars from titta length width height weight Til taste in length, not with, and final might of bar in Length 14 novih Is 1 xrind boolean array of good bars, should be a no vector with other or 1, Is the total number of har booleandoddar. rind Indices for good bars, should be at vector with indices of tood has only, it is the number of food bars odharade mind Master of bars that meet the manufacturing standard, as it to number of_cobars, you can not use length function since lungth has been redefined at 14 her_of_cod bars Find Average length width and height of the bars that meet the manufacturing standard, assign them to we length, we width, and av. Might respectively. The good w width ind in weight of the bars that meet the manufacturing standard, assign it to min welcht Wit MATLABS programomine how many burs Somalilanum bar torging in the manufacturing standards for the program should computer the average lenge with antage of the bors that meet the manufacturing and for They are number foring run woned in the MATLAB W. The data din 20 yediat the solution en the sound on con the bar within the column contains the basi wid the form in the bar wighting The MATLAB tartottata' wad the variable named that from the battle into MATLAB Work Mike sure the art in their as you program nahongth of tomaromat width 4 mm and nomight Bars that meet the manufacturing standards for sale should meet it at the owner ng with include of the nomination, the between your brand the nominal bar should be within the nominal length in borection 2. Wiwit of the nom with Height within of the nomine Wighthoortoed 1020 The program should clearly display the following: 1. Number of bars that meet the manufacturing standard, assign it to number of good bars 2. Average lengtly, width and height of the bars that meet the manufacturing standard, assign them to avg_length, avg_width, and avg_height respectively 3. Minimum weight of the bars that meet the manufacturing standard, assign it to min_weight Make sure that 1. The program clearly displays the number of bars, average dimensions, and minimum weight of the bars that meet the standard 2 The program will work for any bar data of the specified form (N by 4 array, not just for the data in the supplied MATLAB workspace ile 3. abs), mean(min), max() size() eto, may help Script e Reset MATLAB DO 5 Load the data tiart from baratamat load tatt. tinut) Extract length, with, height, and weight or bars from tisarbata length width height Ndefine nominal length, nominal width and nominal higit of bar in 13 nonLength howth 11 Find boolean array of good bars, should be and vector with either word, is the total number of bars is boonGoodilar Wind Indles formed ans, should be vector with indices of food tars only, is the number of food bars collars Finder of bars that muut the manufacturing standard, asten it to number of gooers, you cannot length function bere since Ingth has nerede ember_of_good bars in Average length, wath, und height of the bars that meet the manufacturine standard, assign them to avength, w with, and whalent respeitly. ave_width 11 what in wint of the bars that the imafacturing standard, as it het
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
