Finding threshold of matrix
Ältere Kommentare anzeigen
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).
Antworten (1)
Walter Roberson
am 16 Sep. 2017
1 Stimme
sort() and index 3/10 of the way through.
2 Kommentare
MSP
am 16 Sep. 2017
Walter Roberson
am 16 Sep. 2017
Yes. See the Algorithms section of https://www.mathworks.com/help/stats/prctile.html#btgyzpd-1 which describes the algorithm prctile uses.
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!