ENGINEERING FUNDAMENTALS
ENGINEERING FUNDAMENTALS
6th Edition
ISBN: 9781337705011
Author: MOAVENI
Publisher: CENGAGE L
bartleby

Concept explainers

Question
Book Icon
Chapter 15, Problem 8P
To determine

Using MATLAB create a table which shows the relationship among units of pressure in Pa, and psi in the range of 10kPato100kPa by an increment of 0.5kPa.

Expert Solution & Answer
Check Mark

Explanation of Solution

Given data:

The range of pressure is 10kPato100kPa by an increment of 0.5kPa.

Formula used:

Formula used to calculate the unit of pressure in kilo Pascal to psi is,

psi=(145.038×103)×P(kPa) (1)

Here,

P is the pressure in kilo Pascal.

Calculation:

The steps to create the table which shows the relationship among units of pressure in Pascal and psi using MATLAB are as follows,

  • Generate a range of values of pressure in Pascal (10kPato100kPa) by an increment of 0.5kPa.
  • Use equation (1) to find the unit of pressure in psi.
  • Print the values of pressure in units of psi by varying the range of pressure (10kPato100kPa) by an increment of 0.5kPa.

In the MATLAB script editor type the code as follows and save it with name of “unitconversion” as .m file, then run the code to find the relationship between the pressure in Pascal and psi,

P_kPa=10:0.5:100;

P_psi=(145.038e-03)*P_kPa;

format bank

fprintf('\n------------------------------------------')

fprintf('\n\t\tP(kPa)\t\tP(psi)')

fprintf('\n-------------------------------------------\n')

disp([P_kPa',P_psi'])

fprintf('-------------------------------------------')

In the MATLAB command window, the output will be displayed as follows,

------------------------------------------

       P(kPa)    P(psi)

-------------------------------------------

         10.00          1.45

         10.50          1.52

         11.00          1.60

         11.50          1.67

         12.00          1.74

         12.50          1.81

         13.00          1.89

         13.50          1.96

         14.00          2.03

         14.50          2.10

         15.00          2.18

         15.50          2.25

         16.00          2.32

         16.50          2.39

         17.00          2.47

         17.50          2.54

         18.00          2.61

         18.50          2.68

         19.00          2.76

         19.50          2.83

         20.00          2.90

         20.50          2.97

         21.00          3.05

         21.50          3.12

         22.00          3.19

         22.50          3.26

         23.00          3.34

         23.50          3.41

         24.00          3.48

         24.50          3.55

         25.00          3.63

         25.50          3.70

         26.00          3.77

         26.50          3.84

         27.00          3.92

         27.50          3.99

         28.00          4.06

         28.50          4.13

         29.00          4.21

         29.50          4.28

         30.00          4.35

         30.50          4.42

         31.00          4.50

         31.50          4.57

         32.00          4.64

         32.50          4.71

         33.00          4.79

         33.50          4.86

         34.00          4.93

         34.50          5.00

         35.00          5.08

         35.50          5.15

         36.00          5.22

         36.50          5.29

         37.00          5.37

         37.50          5.44

         38.00          5.51

         38.50          5.58

         39.00          5.66

         39.50          5.73

         40.00          5.80

         40.50          5.87

         41.00          5.95

         41.50          6.02

         42.00          6.09

         42.50          6.16

         43.00          6.24

         43.50          6.31

         44.00          6.38

         44.50          6.45

         45.00          6.53

         45.50          6.60

         46.00          6.67

         46.50          6.74

         47.00          6.82

         47.50          6.89

         48.00          6.96

         48.50          7.03

         49.00          7.11

         49.50          7.18

         50.00          7.25

         50.50          7.32

         51.00          7.40

         51.50          7.47

         52.00          7.54

         52.50          7.61

         53.00          7.69

         53.50          7.76

         54.00          7.83

         54.50          7.90

         55.00          7.98

         55.50          8.05

         56.00          8.12

         56.50          8.19

         57.00          8.27

         57.50          8.34

         58.00          8.41

         58.50          8.48

         59.00          8.56

         59.50          8.63

         60.00          8.70

         60.50          8.77

         61.00          8.85

         61.50          8.92

         62.00          8.99

         62.50          9.06

         63.00          9.14

         63.50          9.21

         64.00          9.28

         64.50          9.35

         65.00          9.43

         65.50          9.50

         66.00          9.57

         66.50          9.65

         67.00          9.72

         67.50          9.79

         68.00          9.86

         68.50          9.94

         69.00         10.01

         69.50         10.08

         70.00         10.15

         70.50         10.23

         71.00         10.30

         71.50         10.37

         72.00         10.44

         72.50         10.52

         73.00         10.59

         73.50         10.66

         74.00         10.73

         74.50         10.81

         75.00         10.88

         75.50         10.95

         76.00         11.02

         76.50         11.10

         77.00         11.17

         77.50         11.24

         78.00         11.31

         78.50         11.39

         79.00         11.46

         79.50         11.53

         80.00         11.60

         80.50         11.68

         81.00         11.75

         81.50         11.82

         82.00         11.89

         82.50         11.97

         83.00         12.04

         83.50         12.11

         84.00         12.18

         84.50         12.26

         85.00         12.33

         85.50         12.40

         86.00         12.47

         86.50         12.55

         87.00         12.62

         87.50         12.69

         88.00         12.76

         88.50         12.84

         89.00         12.91

         89.50         12.98

         90.00         13.05

         90.50         13.13

         91.00         13.20

         91.50         13.27

         92.00         13.34

         92.50         13.42

         93.00         13.49

         93.50         13.56

         94.00         13.63

         94.50         13.71

         95.00         13.78

         95.50         13.85

         96.00         13.92

         96.50         14.00

         97.00         14.07

         97.50         14.14

         98.00         14.21

         98.50         14.29

         99.00         14.36

         99.50         14.43

        100.00         14.50

-------------------------------------------

Conclusion:

Thus, the table which shows the relationship among units of pressure in kPa,and psi in the range of 10kPato100kPa by an increment of 0.5kPa is created using MATLAB.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
2P -1.8 m- -1.8 m- -B Wo P -1.8 m- C
Part F: Progressive activity week 7 Q.F1 Pick the rural location of a project site in Victoria, and its catchment area-not bigger than 25 sqkm, and given the below information, determine the rainfall intensity for ARI 5, 50, 100 year storm event. Show all the details of the procedure. Each student must propose different length of streams and elevations. Use fig below as a sample only. Pt. E-nt 950 200 P: D-40, PC-92.0 300m 300m 000m PL.-02.0 500m HI-MAGO PLA-M 91.00 To be deemed satisfactory the solution must include: Q.F1.1.Choice of catchment location Q.F1.2. A sketch displaying length of stream and elevation Q.F1.3. Catchment's IFD obtained from the Buro of Metheorology for specified ARI Q.F1.4.Calculation of the time of concentration-this must include a detailed determination of the equivalent slope. Q.F1.5.Use must be made of the Bransby-Williams method for the determination of the equivalent slope. Q.F1.6.The graphical display of the estimation of intensities for ARI 5,50, 100…
I need help finding: -The axial deflection pipe in inches. -The lateral deflection of the beam in inches -The total deflection of the beam like structure in inches ?
Knowledge Booster
Background pattern image
Civil Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, civil-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Engineering Fundamentals: An Introduction to Engi...
Civil Engineering
ISBN:9781305084766
Author:Saeed Moaveni
Publisher:Cengage Learning