MATLAB: How can i find a value that is bigger than 95% of the values in a given vector

vectors

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?

Best Answer

Use the Statistics and Machine Learning Toolbox prctile (link) function to determine the 95th percentile.