


% -*- texinfo -*-
% @deftypefn {Function File} @var{y} = downsample(@var{x},@var{n})
% Downsample the signal, selecting every nth element. If @var{x}
% is a matrix, downsample every column.
%
% For most signals you will want to use decimate instead since
% it prefilters the high frequency components of the signal and
% avoids aliasing effects.
%
% @deftypefnx {Function File} @var{y} = downsample(@var{x},@var{n},@var{offset})
% Select every nth element starting at sample @var{offset}.
% @end deftypefn
% @seealso{decimate, interp, resample, upfirdn, upsample}