필터 지우기
필터 지우기

for loops within while loop

조회 수: 1 (최근 30일)
Matthew
Matthew 2024년 4월 15일
댓글: VBBV 2024년 4월 16일
.

답변 (1개)

VBBV
VBBV 2024년 4월 15일
while t1< 2 & h2 >= 0
 % your code 
end 

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

  댓글 수: 3
Matthew
Matthew 2024년 4월 15일
unfortunately this does not solve the questions two my problem. i appreciate the insight, though.
VBBV
VBBV 2024년 4월 16일
if you explain the problem clearly (without dubious intentions) , its easier to get the problem solved.

댓글을 달려면 로그인하십시오.

카테고리

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