Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. The table below represents the parts that make up a manufacturable assembly (

ID: 3555591 • Letter: 1

Question

1. The table below represents the parts that make up a manufacturable assembly (say, a smart phone). Use MATLAB to compute the total weight of the phone if parts are purchased for each of three vendors :

a. Show the total weight of the assembly for each vendor.
hint: construct a row vector from the quantity column: Qty = [ 18 22 40 2 1 16   1   1 ] . Construct an 8x3 matrix from the vendor weight data. Multiply the Qty vector * each column. Remember that you can isolate each column of the 8 x 3 using matrixname(1:8, col).
b. Calculate the lightest assembly that can be built if the lightest parts are selected, regardless of vendor.
hint: Use the min( ) function on each row, and create a column vector that contains the minimum weight from each row. Multiply Qty* that column vector to get the weight of an assembly made from the lightest Bolt, Screws, Nuts, Batteries, etc.

This should be neat and professional.

          Assembly         Qty      Vendor 1      Vendor 2     Vendor 3          Components in Assembly weight in kg Bolts 18 .1 .17 .09 Screws 22 .15 .12 .13 Nuts 40 .25 .21 .20 Batteries 2 1.3 1.8 2.0 Wiring 1 1.0 1.44 1.06 Connectors 16 .45 .53 .41 Frame 1 2.0 1.9 2.1 Cover 1 1.8 1.75 1.6

Explanation / Answer

Qty = [18 22 40 2 1 16 1 1];
Vend = [ .1 .17 .09
.15 .12 .13
.25 .21 .20
1.3 1.8 2.00
1.0 1.44 1.06
.45 .53 .41
2.0 1.9 2.10
1.8 1.75 1.60
];

disp('Total Weight of assembly is ');
totalWeight = Qty*Vend;
disp 'Vend1 Vend2 Vend3'
totalWeight

disp 'Minimum Weights in the list are'
minWeight = min( Vend' )'

disp 'Lightest Assembly weight is '
Qty*minWeight