

You will need to turn in the SciLab files you create to Moodle for credit. Display matrix h.įor this homework you will be creating scripts in SciLab. Display matrix g Create a matrix h with the first element equal to row 1, col 3 of a, the second element equal to row 1, col 2 of c, and the third element equal to row 2. Create a matrix g from matrix a and the first three elements of matrix c, with four rows and three columns. Combine matrix b and matrix d to create matrix f, a one-dimensional matrix with six rows and one column. Combine matrix b and matrix d to create matrix e, a two-dimensional matrix with three rows and two columns. Create the following matrices, and use them in the exercises that follow: | 14 3 82 Create a matrix called d from the third column of matrix a.Your answer should be a two-dimensional matrix 4.) Write a Scilab script named HW6 Prob_04.sce, that will calculate the following: Use the meshgrid) function for your calculations. The acceleration due to gravity is 9.81 m/s. Assume that the first uses mercury, with a density of 13,560 kg/m and the second uses water, with a density of 1000 kg/m. Find the height to which the liquid column will rise for pressures from 0 to 100 kPa for two different barometers.The pressure is calculated using the equation: PHydro = p gH In the past, mercury was used, but because of its toxic properties it has been replaced with a variety of other fluids. A barometer is used to measure atmospheric pressure and is filled with a high-density fluid.

3.) Write a Scilab script named HW6 Prob_03.sce, that will calculate the following:
