Remove outliers from signal

1 vue (au cours des 30 derniers jours)
Lev Mihailov
Lev Mihailov le 9 Juil 2019
Commenté : Lev Mihailov le 9 Juil 2019
Hello! I have a signal and I need to remove outliers from it.
if Atlas(i)-10>= Atlas(i+1);
nreal(i )=0;
else Atlas((i)+10<= Atlas((i+1);
real(i)=Atlas(i);
end
Error Index exceeds matrix dimensions.
I do not understand how to correct this error.
Atlas = 1x12003
i=12003
  2 commentaires
KSSV
KSSV le 9 Juil 2019
Show us the full code......with the dimensions if each variable.
Lev Mihailov
Lev Mihailov le 9 Juil 2019
Atlas=trapz(MarchData) ;
ave=rand(1,12003);
for i= 1:length(ave)-1
if Atlas(i)-10>= Atlas(i+1);
nreal(i )=0;
else Atlas((i)+10<= Atlas((i+1);
real(i)=Atlas(i);
end

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 9 Juil 2019

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by