how to use >,< with while loop
조회 수: 1 (최근 30일)
이전 댓글 표시
if i have a list of numbers and i have to use 'while' loop to determine when the list of numbers decreased by 10000 from initial value , how should i code it ?
댓글 수: 3
Walter Roberson
2019년 8월 20일
hint:
idx = 1;
while idx.^3 + 5*idx.^2 - 19 < 10000
idx = idx + 1;
end
disp(idx)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!