why does this short for loop crash?

2 vues (au cours des 30 derniers jours)
ddd ppp
ddd ppp le 21 Avr 2018
Commenté : ddd ppp le 21 Avr 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 commentaire
ddd ppp
ddd ppp le 21 Avr 2018
nevermind, the list grows at the rate 2^i

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by