I need help on this MATLab HW problem. Please solve with MATLab Problema For thi
ID: 2074045 • Letter: I
Question
I need help on this MATLab HW problem. Please solve with MATLab
Problema For this problem I want you to define n, S, B, and H as vectors. Then calculate U using a single equation. In other words I don't want you to break up the equation into smaller equations and then use those equations to get U. Output U to the command window using disp 2.10 Manning's equation can be used to compute the veloc- ity of water in a rectangular open channel where U-velocity (m/s). S-channel slope,n- roughness coefficient, B-width (m), and H depth (m). The follow ing data are available for five channels: 0035 0020 0.015 0.030 0022 0.0001 0.0002 0.0010 0.0007 0.0003 10 2 1.5 2.5 20 24 0.3624 0.6094 2.5167 1.5809 1.1971Explanation / Answer
clc
clear all
n=[0.035 0.020 0.015 0.030 0.022];
S= [0.0001 0.0002 0.0010 0.0007 0.0003];
B=[10 8 20 24 15];
H=[2 1 1.5 3 2.5];
U=(sqrt(S)./n).*((B.*H)./(B+2*H)).^(2/3);
disp(U);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.