답변 (1개)

VBBV
VBBV 2024년 4월 15일

0 개 추천

while t1< 2 & h2 >= 0
 % your code 
end 

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

댓글 수: 3

VBBV
VBBV 2024년 4월 15일
Initialize h2 as zero before the start of while loop since it does not exist.
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.

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

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2024년 4월 15일

댓글:

2024년 4월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by