www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/mbcLastSelection.m

    function sel = mbcLastSelection(Y)
%mbcLastSelection select a percentage of data from end of data set
%  sel = mbcLastSelection(Y)

%  Copyright 2014-2014 The MathWorks, Inc.

% will select the smallest values from this variable
sel = 1-(linspace(0,1,length(Y)))';