How to compute 99% coverage in MATLAB?

前端 未结 3 828
春和景丽
春和景丽 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:52

    If you do not have the Statistics Toolbox, there is always

    y=sort(x);
    y(floor(length(y)*0.99))
    

    or

    y(floor(length(y)*0.01))
    

    depending on what you meant.

提交回复
热议问题