Finding threshold of matrix
2 ビュー (過去 30 日間)
古いコメントを表示
Suppose u have a matrix A with rand (i.e 0-1). Now a threshold(x) of A is to be determined so that 70% of values of the given matrix A are greater than the threshold(x).
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 9 月 16 日
sort() and index 3/10 of the way through.
2 件のコメント
Walter Roberson
2017 年 9 月 16 日
Yes. See the Algorithms section of https://www.mathworks.com/help/stats/prctile.html#btgyzpd-1 which describes the algorithm prctile uses.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!