run length compression algorithm

5 views (last 30 days)
Kavita
Kavita on 10 Jul 2019
Answered: Samatha Aleti on 18 Jul 2019
How to apply run length compression and save compressed data by Run Length Coding in matlab?

Answers (1)

Samatha Aleti
Samatha Aleti on 18 Jul 2019
Hi,
You can use the Run length Encoding function which is available in MATLAB File Exchange. Here is the link to download and use
Here is an example
X = [56 56 56 56 28 28 255 255 9 9 9];
Y = rle(X);

Categories

Find more on Denoising and Compression in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!