how to use >,< with while loop
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 20 Ago 2019
hint:
idx = 1;
while idx.^3 + 5*idx.^2 - 19 < 10000
idx = idx + 1;
end
disp(idx)
Risposte (1)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!