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

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

Accepted Answer

Roger Stafford
Roger Stafford on 11 Mar 2015
while length(i) < 10
.....

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!