Split a matrix in quintile based on ascending order

Hello,
I have a matrix of 2874x26 that I'd like to split into quintile for each of the 26 years. I've tried the quantile function many times but I can't figure out a way to do this at once.
Best regards,
Frank

1 Comment

Note that there's some NaN in my matrix and I want to exclude them when forming my quintile for each year.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2019b

Asked:

on 16 Feb 2021

Commented:

on 16 Feb 2021

Community Treasure Hunt

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

Start Hunting!