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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by