Clear Filters
Clear Filters

for loops within while loop

49 views (last 30 days)
Matthew
Matthew on 15 Apr 2024 at 19:43
Commented: VBBV on 16 Apr 2024 at 0:39
.

Answers (1)

VBBV
VBBV on 15 Apr 2024 at 20:46
while t1< 2 & h2 >= 0
 % your code 
end 

You could put both conditions together as above using single while loop.

  3 Comments
Matthew
Matthew on 15 Apr 2024 at 21:12
unfortunately this does not solve the questions two my problem. i appreciate the insight, though.
VBBV
VBBV on 16 Apr 2024 at 0:39
if you explain the problem clearly (without dubious intentions) , its easier to get the problem solved.

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!