Question: engineering math a. Create a one-row cell array named Cylinder containing one row with the following elements: The text string Height(c) The value 12 The



engineering math
a. Create a one-row cell array named Cylinder containing one row with the following elements: The text string Height(c) The value 12 The text string Diameter(cm) The value 1.5 The text string Specific Gravity The value 3.5 b. Create a one-row cell array named Papa containing the following elements: . The text string ofan.) The value 20 . The text string OD/ID(cm) A row vector containing the values 2.5 and 2.2 c Create a 2*3 cell array named Parts containing the following elements: . The first row should contain the text string Quantity, the value 100 and the cell array cviander The second row should contain the text string Quantity the value 15 and the cell array Piper d. Using the parts cell array, create the following variables. Note that your code should work if the contents of parts changes-DO NOT hard-cade any values flutyl .containing the number of cylinders (first row, second column of Part 1 Volty, containing the volume (cm) of one cylinder (V = nr"H, where the diameter is in the fourth element of the cell array in the first row, third column of parts, and the height is in the second element of that same cell array in Pants Masec.containing the mass in grams of one cylinder. (You should be able to figure out where the specific gravity is by now.) the containing the number of pipes (second row, second column of bactes IV. containing the internal volume (cm) of one cylinder (Vmr41)You will have to determine where the values needed are stored using the explanations for the and voly as a guide. Note that OD/ID means Outside Diameter/Inside Diameter Add two columns to the cell array for The fourth column of Pat should contain the text in the first row and the in the second row. The fifth column of Part should contain the corresponding TOTAL mass of all of the cylinders and the TOTAL internal volume of all of the pices R15 My Soul 1. Create a one-row cell array named cylinder containing one row with the following elements: . The text string Height(cm) The value 12 . The text string Diameter(cm) The value 1.5 The text string Specific Gravity The value 3.5 1. Create a one-row cell array named Pipe containing the following elements The text string Height (cm) The value 20 The text string OD/ID(cm) Arow vector containing the values 2.5 and 22 1. Create a 2-3 cell array named Parts containing the following elements: The first row should contain the text string Quantity, the value 100 and the cell array cylinder . The second row should contain the text string quantity, the value 15 and the cell array Pipe 1. Using the parts cell array, create the folowing vanables. Note that your code should work if the contents of parts changes DO NOT hard.codecanyes Tomcyl, containing the number of cylinders (first row second column of Parts) Numyl, containing the number of cylinders (first row, second column of Parts) Volcyl, containing the volume (cm3) of one cylinder (V = T2H), where the diameter is in the fourth element of the cell array in the first row, Third column of Parts, and the height is in the second element of that same cell array in Parts MassCyl, containing the mass in grams of one cylinder. (You should be able to figure out where the specific gravity is by now.) Plump ipe, containing the number of pipes (second row, second column of Parts) IVolpipe, containing the internal volume (cm3) of one cylinder (V 12H) You will have to determine where the values needed are stored using the explanations for tamtyl and volcyl as a guide. Note that OD ID means Outside Diameterinside Diameter Add two columns to the cell array Parts The fourth column of parts should contain the text Total Mass() in the first row and Total volume (cm3) in the second row. The fifth column of Parts should contain the corresponding TOTAL mass of all of the cylinders and the TOTAL intemel volume of all of the pipes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
