Remove outliers from signal

1 次查看(过去 30 天)
Lev Mihailov
Lev Mihailov 2019-7-9
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 个评论
KSSV
KSSV 2019-7-9
Show us the full code......with the dimensions if each variable.
Lev Mihailov
Lev Mihailov 2019-7-9
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

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2019-7-9

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by