Effacer les filtres
Effacer les filtres

how to deal with this error??

2 vues (au cours des 30 derniers jours)
Good mind
Good mind le 26 Déc 2017
Modifié(e) : Good mind le 27 Mai 2018
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

Réponse acceptée

Birdman
Birdman le 26 Déc 2017
Modifié(e) : Birdman le 26 Déc 2017
At the beginning of the code, write
DG4=zeros(1,2000);
  1 commentaire
Image Analyst
Image Analyst le 26 Déc 2017
DG4 is NOT from that code. It's not mentioned anywhere in that code.

Connectez-vous pour commenter.

Plus de réponses (1)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by