フィルターのクリア

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 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