why does this short for loop crash?

3 ビュー (過去 30 日間)
ddd ppp
ddd ppp 2018 年 4 月 21 日
コメント済み: ddd ppp 2018 年 4 月 21 日
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 件のコメント
ddd ppp
ddd ppp 2018 年 4 月 21 日
nevermind, the list grows at the rate 2^i

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by