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

1 回表示 (過去 30 日間)
i have an array i = []; how do i code so that while i has less than 10 elements it runs.

採用された回答

Roger Stafford
Roger Stafford 2015 年 3 月 11 日
while length(i) < 10
.....

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by