i have a while loop i wanna set the condition so it does 'while the array has less than 10 elements it runs'.

1 Ansicht (letzte 30 Tage)
i have an array i = []; how do i code so that while i has less than 10 elements it runs.

Akzeptierte Antwort

Roger Stafford
Roger Stafford am 11 Mär. 2015
while length(i) < 10
.....

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by