How do i can write a for loop inside a for loop?
古いコメントを表示
I am working on a fluid flow problem i want to find the velocity, Reynolds, darcy friction factor and the loss head.
However, the velocity is function of darcy friction factor and the loss head.
Reynolds and flow rate are functions of velocity.
darcy friction should be calculated by a for loop using Colebrook equation.(1 loop)
I don't have any of: velocity, flow rate, loss and darcy friction factor.
4 件のコメント
Image Analyst
2020 年 6 月 14 日
If you don't have any of the values, or ranges of values, then you really can't do anything, can you. Not even a loop.
To have a for loop inside a for loop, you can do
for k1 = k1Start : k1Stop
for k2 = k2start : k2stop
% Some code...
end
end
Hussein Rida
2020 年 6 月 14 日
Hussein Rida
2020 年 6 月 14 日
darova
2020 年 6 月 15 日
How to run your code
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Fluid Dynamics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!