logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

What would be the outputs of the following MATLAB inputs?

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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]

 

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

954 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

748 Answers

Hire Me
expert
Husnain SaeedComputer science

771 Answers

Hire Me
expert
Atharva PatilComputer science

949 Answers

Hire Me

Get Free Quote!

297 Experts Online