What would be the outputs of the following MATLAB inputs? [10 marks]
a) >> B(2:5)
b) >> A(4:8)
c) >> A(:,3)
d) >> B(:,3:4)
e) >> A(2:3,:)
f) >> B(2:3, 2:4)
g) >> length (A)
h) >> max(B)
2. Viscosity is a measure of how easily a fluid flow such as water. Thabo wants to investigate how viscosity of water varies with temperature which can be determined by the following correlation:
Using MATLAB, create a table for Thabo that shows the viscosity of water as a function of temperature in the range of 0° C (273.15 K) to 100° C (373.15 K) in increments of 5° C. Also, create a graph showing the value of viscosity as a function of temperature. [10 marks]
3. Varies countries use different units of pressure. Using MATLAB, create a table that shows the relationship among the units of pressure in Pa, psi, and inches of water in the range of 1000 Pa to 10000 Pa. Use increments of 500 Pa. [10 marks]
4. A person by the name of Huebscher developed a relationship between the equivalent size of round ducts and the rectangular ducts according to:
where
D = diameter of equivalent circular duct (mm)
a = dimension of one side of the rectangular duct (mm)
b = dimension of the other side of the rectangular duct (mm)
Using MATLAB, create a table that shows the relationship between the circular and the rectangular duct, like the one shown in the accompanying table. [10 marks]
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of