why does this short for loop crash?

3 visualizaciones (últimos 30 días)
ddd ppp
ddd ppp el 21 de Abr. de 2018
Comentada: ddd ppp el 21 de Abr. de 2018
for i=1:33, matlab crashes. This loop might crash too. Is there a simple error here?
tlist=0
dt =.1
for i=1:5
tlist=[tlist,tlist+dt];
end
  1 comentario
ddd ppp
ddd ppp el 21 de Abr. de 2018
nevermind, the list grows at the rate 2^i

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by