how can i find a value that is bigger than 95% of the values in a given vector
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dominique Gorissen
am 24 Nov. 2017
Beantwortet: Rik
am 24 Nov. 2017
I have a vector A=[X1; X2; X3; ...Xn] and i would like to find a value that is bigger than 95% of the components of this vector. How can i do this?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 24 Nov. 2017
Use the Statistics and Machine Learning Toolbox prctile (link) function to determine the 95th percentile.
0 Kommentare
Weitere Antworten (1)
Rik
am 24 Nov. 2017
Sort the vector, multiply the length by 0.95 and use the rounded value as index.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!