Question

(i) After executing the following script file in MATLAB the displayed result is (ii) After executing the following script file in MATLAB the displayed result is (iii) The volume of

a cylinder is V = TTr2h. Define r as 3 and h as the row column h= [1, 5, 12]. Which of the following MATLAB expression is correct for solving the volumes of cylinders with the above h values? 9. (12 points) Using the MATLAB built-in functions (zeros, ones, eyes), write aMATLAB program to create the following matrix:

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9

Fig: 10

Fig: 11

Fig: 12