Run Length Encoding
Version 1.0.0.0 (1.02 KB) by
Suraj Kamya
Run Length Encoding - Loss less Coding Technique
% rleenc - Run Length Encoding Algorithm
% rleenc - function performs run length encoding for binary input sequence.
% ins - input sequence
% enc - encoded output
%
% For example, x=randint(1,10,[0 1]);
% Will give you a random sequence
% having only zeros and ones.
% enc=rleenc(x);
%
% developed by Suraj Kamya
% contact me: kamyasuraj@yahoo.com
Cite As
Suraj Kamya (2026). Run Length Encoding (https://www.mathworks.com/matlabcentral/fileexchange/46865-run-length-encoding), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
