Recent content by gsb
-
G
Solving Matlab Homework Problem - Index Out of Bounds Error
Homework Statement hi, i am having some problem with a code in matlab. my code is: t = 30; H= 30; h= 3; n = H/h; qqq= 10; a= 3; b = .2; k= 0.04; Lo= 100; g= 9.81; for i = 1:t q(i) = 0; for j = 1:n nl = qqq + (j*h)/(a + b*(j*h)); nlt = nl*(0.0172*log(i) + 1); q(i) = q(i) +...- gsb
- Thread
- Matlab
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
G
Convergence Error in Matlab Code for Fluid Flow Simulation
hi, i am having some problem with a code in matlab. my code is: t = 30; H= 30; h= 3; n = H/h; qqq= 10; a= 3; b = .2; k= 0.04; Lo= 100; g= 9.81; for i = 1:t q(i) = 0; for j = 1:n nl = qqq + (j*h)/(a + b*(j*h)); nlt = nl*(0.0172*log(i) + 1)...- gsb
- Post #8
- Forum: Engineering and Comp Sci Homework Help