フィルターのクリア

how to delete outliers?

3 ビュー (過去 30 日間)
cemsi888
cemsi888 2015 年 9 月 22 日
回答済み: Thorsten 2015 年 9 月 22 日
Hi I want to delete my outliers and ı used grubbs test. Now ı want to apply 2 sıgma rules which is a little bit different from Grubbs test. I wrote codes but ıt gives me error messagge.
mu=mean(eingabe{n,m});
s=std(eingabe{n,m});
outliers= eingabe{n,m}< mu-2*s & eingabe{n,m}> mu+2*s ;
outliers2= eingabe{n,m}< mu-2*s;
eingabe{n,m}(outliers)=[];
I think & work does not there. Do ı have another options.Could you please help me?
  1 件のコメント
cemsi888
cemsi888 2015 年 9 月 22 日
Any idea??

サインインしてコメントする。

採用された回答

Thorsten
Thorsten 2015 年 9 月 22 日
Replace & with OR (|); eingabe cannot be smaller mu AND (&) larger mu at the same time:
outliers = eingabe{n,m} < mu - 2*s | eingabe{n,m} > mu + 2*s;
That should work. If it doesn't please tell us a bit more about what eingabe{m,n} is and what went wrong.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by