why does this short for loop crash?

2 Ansichten (letzte 30 Tage)
ddd ppp
ddd ppp am 21 Apr. 2018
Kommentiert: ddd ppp am 21 Apr. 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 Kommentar
ddd ppp
ddd ppp am 21 Apr. 2018
nevermind, the list grows at the rate 2^i

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by