RUN LENGTH ENCODING

rle is performed on a binay stream of data

You are now following this Submission

rle is performed on a binary stream of data,
where in the 1st element is copied (same) as the binary data,
the next element is the no of times the first element,
the next element is the no of times the next binary logic data and so on
eg a=[0 1 1 0 1 0 1 1 1 1 1 0 0 0 0 0 0 0 1 1 0 1]
rle =[0<<1stbinary bit> 1<<no of 0's> 2<<no of 1's> 1<<no of 0's> 1<<no of 1's> 1 5 7 2 1 1]

Cite As

Shoeb Temrikar (2026). RUN LENGTH ENCODING (https://uk.mathworks.com/matlabcentral/fileexchange/19559-run-length-encoding), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0