how to use >,< with while loop
2 ビュー (過去 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)
回答 (1 件)
参考
カテゴリ
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!