error message contain ::: Error using colebrook (line 2) Not enough input arguments. how i can solve it please?
Afficher commentaires plus anciens

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 commentaire
Walter Roberson
le 29 Avr 2017
You need to pass arguments when you call the function, just like you do inside the for loop.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!