Run Length Encoding for MATLAB Introduction This is a project from MATLAB file exchange, which is original written by Jan Simon. Many thanks for his great job, and a pity he is not on Github. More information Written in C, and can be compiled to .mex, which is very useful.