problem3_9 - %...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function manning %Problem 3.9 % %U=velocity(m/s),S=channel slope, n=roughness %coeficient, B=width(m), and H=depth(m) disp(' n S B H U'); j=1; matrix=[.035 .0001 10 2; .020 .0002 8 1; .015 .0010 20 1.5; .030 .0007 24 3; .022 .0003 15 2.5]; % while j~=6
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % U=(sqrt(matrix(j,2))/matrix(j,1))*((matrix(j,3)*matrix(j,4))/ (matrix(j,3)+2*matrix(j,4)))^(2/3); % fprintf('%4.3f %5.4f %4.2f %3.2f %5.4f\n', matrix(j,1),matrix(j,2),matrix(j,3),matrix(j,4),U); % j=j+1; % end end...
View Full Document

Ask a homework question - tutors are online