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 中查找有关 Multidimensional Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by