[Solved]-Question 1 Studying Propertios Tiny Spheres Generated Ty Automated Process Coltlect Data L Q37253336
MATLAB code
i Question 1 You are studying the propertios of tiny spheres generated ty an automated process.You coltlect data on a larga spheres and record this data in the two-row matrix sphereData. Each pair of values (each column) represents specific sphere. The first row of SphereData contains the diameters of the spheres in millimeters (mm; the contains the masses of the corresponding spheres in micrograms (ugl. Assuming spharebata of the the deta for a second row exists in the workspace, MATLAB commands to achieve each of the following tasks. write (a) Create a third row in SphereData that contains the volumes ( (cubic millimeters, mm2) of the corresponding spheres represented in the first two rows of SphereData (b) Create a fourth row in SphereData that contains the SphereData. specific gravities of the corresponding spheres repr esented in (c) Create a column vector DiamData that contains the following information: First element: Average diamoter of all spheres in millimeters (mml Second element: Minimum diameter of all spheres in millimeters (mm Question 2 For each of the following problems, write MATLAB statements that will accomplish the stated purpose. (a) Ask the user to enter a number between 10 and 25 inclusive, stored in the variable n. Check the user has entered a value i the correct range; otherwise, keep asking the user to enter a value until they enter a correct value. (b) Generate a vector of random numbers that meet the following criteria: V1 should be a 1 x n vector, with number ranging from 1 to 500. The value of “n” is determined by the user in part (a) above. (c) Take the cube root of all values in vi, and store the resulting vector in Veubrt. t value in V1 into Bigval. Determine the position of the value within V1 and place this positon into BigValPos. (e) Determine the median value of V1. Replace all value in v1 less than the median value with the number 600. Show transcribed image text i Question 1 You are studying the propertios of tiny spheres generated ty an automated process.You coltlect data on a larga spheres and record this data in the two-row matrix sphereData. Each pair of values (each column) represents specific sphere. The first row of SphereData contains the diameters of the spheres in millimeters (mm; the contains the masses of the corresponding spheres in micrograms (ugl. Assuming spharebata of the the deta for a second row exists in the workspace, MATLAB commands to achieve each of the following tasks. write (a) Create a third row in SphereData that contains the volumes ( (cubic millimeters, mm2) of the corresponding spheres represented in the first two rows of SphereData (b) Create a fourth row in SphereData that contains the SphereData. specific gravities of the corresponding spheres repr esented in (c) Create a column vector DiamData that contains the following information: First element: Average diamoter of all spheres in millimeters (mml Second element: Minimum diameter of all spheres in millimeters (mm Question 2 For each of the following problems, write MATLAB statements that will accomplish the stated purpose. (a) Ask the user to enter a number between 10 and 25 inclusive, stored in the variable n. Check the user has entered a value i the correct range; otherwise, keep asking the user to enter a value until they enter a correct value. (b) Generate a vector of random numbers that meet the following criteria: V1 should be a 1 x n vector, with number ranging from 1 to 500. The value of “n” is determined by the user in part (a) above. (c) Take the cube root of all values in vi, and store the resulting vector in Veubrt. t value in V1 into Bigval. Determine the position of the value within V1 and place this positon into BigValPos. (e) Determine the median value of V1. Replace all value in v1 less than the median value with the number 600.
Expert Answer
Answer to i Question 1 You are studying the propertios of tiny spheres generated ty an automated process.You coltlect data on a la… . . .
OR

