Classical = pdist2(matrix_logdiff_nsample, mean(matrix_logdiff_nsample),'mahal');p = size(matrix_logdiff_nsample,2);chi2quantile = chi2inv(0.99,p);[SFmcd, MFmcd, Fmcd, OutFmcd] = robustcov(matrix_logdiff_nsample);plot(Classical, Fmcd, 'o')line([chi2quantile, chi2quantile], [0, 120], 'color', 'r')line([0, 80], [chi2quantile, chi2quantile], 'color', 'r')hold onplot(Classical(OutFmcd), Fmcd(OutFmcd), 'b*')xlabel('Mahalanobis Distance')ylabel('Robust Distance')title('Distance Plot, Fast MCD method')
MATLAB: Given that you have this line of code how do you count the number of points in each quadrant
statistics
Best Answer