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

4 vues (au cours des 30 derniers jours)
  3 commentaires
Eng. Fredius Magige
Eng. Fredius Magige le 21 Mar 2025
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 le 21 Mar 2025
The code you posted is not readable. Confusing and not indented and not formatted as code. Please fix it so we can read it.

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by