Exclude more than one outlier in linear function
古いコメントを表示
Hi,
I would like to remove the values under -4.000.000 and over 2.000.000, but I get the following error message: >> outl = find(mdl.Residuals.Raw<-4000000 & mdl.Residuals.Raw>2000000) outl = Empty matrix: 0-by-1 There are definitely values between these two values.. Thank you for your help!
採用された回答
その他の回答 (1 件)
Joseph Cheng
2014 年 7 月 11 日
1 投票
you'll need to use the logical comparison OR '|' not AND '&'. as you are doing mdl.Residuals.Raw<-4000000 AND mdl.Residuals.Raw>2000000 where there are no intersections where both are true (look up the truth table for AND where both conditions have to be true). You're looking for the values that are <-4000000 or are greater than 2000000. what you have is values that are < and also are > than 2000000
カテゴリ
ヘルプ センター および File Exchange で Probability Distributions and Hypothesis Tests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!