How to compute 99% coverage in MATLAB?

前端 未结 3 826
春和景丽
春和景丽 2021-01-17 17:05

I have a matrix in MATLAB and I need to find the 99% value for each column. In other words, the value such that 99% of the population has a larger value than it. Is there a

3条回答
  •  耶瑟儿~
    2021-01-17 17:45

    Use QUANTILE function.

    Y = quantile(X,P);
    

    where X is a matrix and P is scalar or vector of probabilities. For example, if P=0.01, the Y will be vector of values for each columns, so that 99% of column values are larger.

提交回复
热议问题