Question: WRITE MATLAB CODE 9 10 0.9) Pipe 0.8 1) If you have 10 different pipes with different diameters as shown: 11 2. 3 4 5

WRITE MATLAB CODE 9 10 0.9) Pipe 0.8 1) If you have 10 different pipes with different diameters as shown: 11 2. 3 4 5 6 7 8 D (m) 0.1 0.2 0.25 0.3 0.4 0.5 0.5 0.6 And the velocity for all pipes V = 5 m/s V. 5 Find the flow rate in each pipe Q, where 70D2 A= and 4 Q = VA Q =V&A A = PixD. "2/4 linspace (1, 10, 10) 2) Use both colon operator and linspace function to create the following row vectors twice: a) 1 2 3 4 5 6 7 8 9 10 b) 9 8 7 6 linspace (9,6,4) c) -2 -5 -8 -11 -14 linspace (-2,- 14,5 d) 7 12 17 linspace (7, 17, 31 45 3) Given the following table: t(s) Lo 7 V (m/s) to 60 12 100 18 120 32 130 39 110 53 50 60] 40 7 90 x= = { var a) Use numerical integration to calculate the total distance travelled Vdt trape(t, v b) Using linear interpolation function, estimate the velocity at t = 40 s. x= interpl (t, V, 40) 4) Write a program that asks the user to enter an angle (0) between 30 and 90. Then the program returns sin (0) If the angle is out of range (if e 90) then the program must display the following output (The angle is out of range)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
