Cell array-Stream Flow The mat file "StreamDataCA mat contains a cell array, Stream. The first row contains header columns indicating the Channel Name, water level in feet (ft), channel width in feet (ft), and velocity data in meters per second (m/s) for different streams. Load the file My Solutions Without changing any data in the original columns, calculate and store the flow rate of each stream in cubic meters per second (m^3/s) as a new column in the cel array, stream. The column header of the new column should be "Flow Rate [m^3/s. The flow rate can be calculated for a rectangular channel with the equation: Q=hbV where . Q is the flow rate in cubic meters per second [m3/s] his the height of water in meters [m] .b is the width of the channel in meters (m) .V is the velocity of the of the water in meters per second [m/s] Add another new column with a header of Notes Store the character array Maximum Flow on the row comesponding to the channel with the maximum flow and otherwise.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

matlab

1 %% Variables to be used
2% Inputs
3% StreamDataCA.mat is a mat file as described in the problem statement
4
5% Intermediate variables
6% stream
7%
8 %
9%
10 %
11
Cell array with the following columns (first row contains header information)
Channel Name names of the channels corresponding to the measurements
Water Level [ft] height of water in channel in feet [ft]
Channel Width [ft] - width of the rectangular channel in feet [ft]
Velocity [m/s] velocity of flow in meters per second [m/s]
12 % Outputs
13 % Stream Cell Array with the original data plus the newly calculated column
14%
15 %
16
17 %% Program
18
19
Flow Rate [m3/s] flow rate of the stream in cubic meters per second [m^3/s]
Notes channel with maximum flow indicated with 'Maximum Flow and otherwise
Transcribed Image Text:1 %% Variables to be used 2% Inputs 3% StreamDataCA.mat is a mat file as described in the problem statement 4 5% Intermediate variables 6% stream 7% 8 % 9% 10 % 11 Cell array with the following columns (first row contains header information) Channel Name names of the channels corresponding to the measurements Water Level [ft] height of water in channel in feet [ft] Channel Width [ft] - width of the rectangular channel in feet [ft] Velocity [m/s] velocity of flow in meters per second [m/s] 12 % Outputs 13 % Stream Cell Array with the original data plus the newly calculated column 14% 15 % 16 17 %% Program 18 19 Flow Rate [m3/s] flow rate of the stream in cubic meters per second [m^3/s] Notes channel with maximum flow indicated with 'Maximum Flow and otherwise
Cell array-Stream Flow
The mat file "StreamDataCA mat contains a cell array, stream. The first row contains header columns indicating the Channel Name, water level in feet (ft), channel
width in feet (ft), and velocity data in meters per second (m/s) for different streams.
Load the file.
My Solutions >
Without changing any data in the original columns, calculate and store the flow rate of each stream in cubic meters per second (m3/s) as a new column in the cel
array, stream. The column header of the new column should be "Flow Rate [m^3/s]
The flow rate can be calculated for a rectangular channel with the equation:
Q=hbV
where
. Q is the flow rate in cubic meters per second [m3/s]
h is the height of water in meters [m]
bis the width of the channel in meters (m)
.Vis the velocity of the of the water in meters per second [m/s]
Add another new column with a header of "Notes Store the character array Maximum Flow on the row coresponding to the channel with the maximum flow and
otherwise
Transcribed Image Text:Cell array-Stream Flow The mat file "StreamDataCA mat contains a cell array, stream. The first row contains header columns indicating the Channel Name, water level in feet (ft), channel width in feet (ft), and velocity data in meters per second (m/s) for different streams. Load the file. My Solutions > Without changing any data in the original columns, calculate and store the flow rate of each stream in cubic meters per second (m3/s) as a new column in the cel array, stream. The column header of the new column should be "Flow Rate [m^3/s] The flow rate can be calculated for a rectangular channel with the equation: Q=hbV where . Q is the flow rate in cubic meters per second [m3/s] h is the height of water in meters [m] bis the width of the channel in meters (m) .Vis the velocity of the of the water in meters per second [m/s] Add another new column with a header of "Notes Store the character array Maximum Flow on the row coresponding to the channel with the maximum flow and otherwise
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 2 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education