필터 지우기
필터 지우기

how to deal with this error??

조회 수: 2 (최근 30일)
Good mind
Good mind 2017년 12월 26일
편집: Good mind 2018년 5월 27일
When i write the code i get *The variable'DG4' appears to change size on every loop iteration(within a script). Consider preallocating for speed
What should i do??
t4=122;
n4=2000;
for i=1:n4
if abs(d4(i))>t4
DG4(i)=d4(i)-((t4.^2)/d4(i));
end
end
d4 is a signal of 1x2000 double

채택된 답변

Birdman
Birdman 2017년 12월 26일
편집: Birdman 2017년 12월 26일
At the beginning of the code, write
DG4=zeros(1,2000);
  댓글 수: 1
Image Analyst
Image Analyst 2017년 12월 26일
DG4 is NOT from that code. It's not mentioned anywhere in that code.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

카테고리

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