Quantiles of a matrix

5 views (last 30 days)
Saul Hathaway
Saul Hathaway on 19 Jul 2016
Edited: Azzi Abdelmalek on 19 Jul 2016
Hello,
when using the quantile(x,p) function on a N by N matrix it returns a 1xN vector - is there a function which computes a 1x1 scalar quantile of the whole matrix?
Many thanks

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 19 Jul 2016
Edited: Azzi Abdelmalek on 19 Jul 2016
quantile(quantile(x,p),p)
%or maybe
quantile(x(:),p)

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!