Help with while loop
1 view (last 30 days)
Show older comments
I can't do this while loop properly, someone help me please?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/429458/image.png)
2 Comments
Answers (1)
Walter Roberson
on 26 Nov 2020
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!