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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by