any option as applying while code to develop pipeline connection within looped network; has noted zero indexing

6 ビュー (過去 30 日間)
  3 件のコメント
Eng. Fredius Magige
Eng. Fredius Magige 2025 年 3 月 21 日
any assistance, please. the attached excel might be useful.
In general, am duplicating connection of pipeline head losses in Water Distribution Network (WDN), looping. Data1_8= [3; 5; 7; 8; 2; ...100] with 34 datasets. it seem matr1(2:3,6:7) is challenging one as need zero indecing in while loop; meanwhile the while responding after testing the condition, this main challenge of course
Thank indeed
Image Analyst
Image Analyst 2025 年 3 月 21 日
The code you posted is not readable. Confusing and not indented and not formatted as code. Please fix it so we can read it.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2025 年 3 月 21 日
else(matr1(rL,3)==11);
I suspect from context that you wanted
elseif(matr1(rL,3)==11);

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by