Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
i have an array i = []; how do i code so that while i has less than 10 elements it runs.

Respuesta aceptada

Roger Stafford
Roger Stafford el 11 de Mzo. de 2015
while length(i) < 10
.....

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by