RLE encodes the runlengths of constant values in a vector. SEQLE takes an increment value as a second argument and encodes sequences which increment by that value.
Design based on MatLab #4955 and R-code by the author.
Carl Witthoft (2020). sequence length encoder (seqle, similar to rle) (https://www.mathworks.com/matlabcentral/fileexchange/36955-sequence-length-encoder-seqle-similar-to-rle), MATLAB Central File Exchange. Retrieved .
Inspired by: RLE de/encoding