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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by