error message contain ::: Error using colebrook (line 2) Not enough input arguments. how i can solve it please?
Show older comments

function F = colebrook(Re,K)
F= (1/(-2*log10((K/3.7)+(2.51/Re*sqrt(F)))))^2;
for i=1:20
Re=i*10^3;
K=0.00002;
colebrook(Re,K)
end
end
1 Comment
Walter Roberson
on 29 Apr 2017
You need to pass arguments when you call the function, just like you do inside the for loop.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!