Filter löschen
Filter löschen

Outliers in a dataset

1 Ansicht (letzte 30 Tage)
ii
ii am 21 Okt. 2019
Beantwortet: Daniel M am 22 Okt. 2019
I am trying to find the mean for the outliers and the non-outliers in this a 50x2 data set which i have named (x) I have inputed this into matlab but it is not showing the number I was expecting and was wondering if the input is correclty done? Thanks
R1=find(outliers(:,2)==0);
R2=find(outliers(:,2)==1);
mean x(R1)
mean x(R2)

Antworten (1)

Daniel M
Daniel M am 22 Okt. 2019
If x is also size 50x2, then you should pick a column to index as well.
mx1_1 = mean(x(R1,1));
mx1_2 = mean(x(R1,2));

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by