WRITE MATLAB 5) The following table represents long bend minor losses results. Time (s) Test No. Volume (L) Q (L/min) V (m/s) V/2g (m) hm (m) 1 11.96 5.0167 0.31789 0.00515 0.002 1 9.59 6.2565 0.39645 0.00801 0.005 3. 1 8.43 7.1174 0.45100 0.01036 0.005 4 1 7.09 8.4626 0.53624 0.01465 0.006 13.37 8.9753 0.56873 0.01648 0.008 2 9.81 12.232 0.77512 0.03062 0.011 7. 8.18 14.669 0.92957 0.04404 0.017 8. 7.83 15.325 0.97112 0.056461 0.018 Create a plot similar to the following plot (same xlabel, ylabel, title, and line formatting). Note that you need to make a linear curve fit. Long bend 0.02 - data1 0.018 Linear: y = 0.31'x + 0.0018 linear %3D 0.016 0.014 0.012 - E 0.01 0.008 2. 2. 6. (m)
WRITE MATLAB 5) The following table represents long bend minor losses results. Time (s) Test No. Volume (L) Q (L/min) V (m/s) V/2g (m) hm (m) 1 11.96 5.0167 0.31789 0.00515 0.002 1 9.59 6.2565 0.39645 0.00801 0.005 3. 1 8.43 7.1174 0.45100 0.01036 0.005 4 1 7.09 8.4626 0.53624 0.01465 0.006 13.37 8.9753 0.56873 0.01648 0.008 2 9.81 12.232 0.77512 0.03062 0.011 7. 8.18 14.669 0.92957 0.04404 0.017 8. 7.83 15.325 0.97112 0.056461 0.018 Create a plot similar to the following plot (same xlabel, ylabel, title, and line formatting). Note that you need to make a linear curve fit. Long bend 0.02 - data1 0.018 Linear: y = 0.31'x + 0.0018 linear %3D 0.016 0.014 0.012 - E 0.01 0.008 2. 2. 6. (m)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Matlab code
Computer science

Transcribed Image Text:WRITE MATLAB
5) The following table represents long bend minor losses results.
Test No.
Volume (L)
Time (s)
Q (L/min)
V (m/s)
V/2g (m) hm (m)
1
1
11.96
5.0167
0.31789
0.00515
0.002
9.59
6.2565
0.39645
0.00801
0.005
8.43
7.1174
0.45100
0.01036
0.005
1
7.09
8.4626
0.53624
0.01465
0.006
13.37
8.9753
0.56873
0.01648
0.008
6
9.81
12.232
0.77512
0.03062
0.011
8.18
14.669
0.92957
0.04404
0.017
8.
7.83
15.325
0.97112
0.056461
0.018
Create a plot similar to the following plot (same xlabel, ylabel, title, and line formatting).
Note that you need to make a linear curve fit.
Long bend
0.02
O- data1
0.018
Linear: y = 0.31"x+ 0.0018
linear
0.016
0.014
0.012
E 0.01
0.008
0.006
0.004
0.002
0.01
0.02
0.03
0.04
0.05
0.06
v/2g (m)
6) Create 10 random numbers between -5 and 5. And then use for loop and if condition to
count the positive numbers only.
Q.
(w) "u
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY