Help with while loop

조회 수: 1 (최근 30일)
Hdez
Hdez 2020년 11월 26일
댓글: Hdez 2020년 12월 3일
I can't do this while loop properly, someone help me please?
  댓글 수: 2
Rik
Rik 2020년 11월 26일
Why did you delete your previous question? It is the same as this one.
Hdez
Hdez 2020년 12월 3일
Thank you for your help

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

답변 (1개)

Walter Roberson
Walter Roberson 2020년 11월 26일
dt = input('Enter the desired time step: ');
while dt >= h^2 / (4*alpha)
fprintf('solution is unstable\nPlease enter a value smaller than %g\n', h^2/(4*alpha));
dt = input('Enter the desired time step: ');
end

카테고리

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