% y=fractile(x,f,0);
% PURPOSE: Sort and devide a column vector x into fractiles
%--------------------------------------------
% USAGE: y=fractile(x,f,ascending);
% where: y = a cell array structure containing output fractiles and their index numbers
% x = the input vector
% f = the number of fractiles to be devided into
% ascending = 1 or 0, the logical switch that specifies
% an ascending sort (0) or a descending sort (1)
%--------------------------------------------
%
Wei Li (2021). Sort Vectors Into Fractiles (https://www.mathworks.com/matlabcentral/fileexchange/4423-sort-vectors-into-fractiles), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Very useful, thanks!
Very useful indeed!
It works on my machine. The doubles are the vector cut into minor fractiles
The function doesn't work! I put in a vector and y = fractile(vector, 5, 1), it gives results like
[2x2 double] [2x2 double] [2x2 double] [2x2 double] [2x2 double]