This is the revision of 'Simple LZW algorithm' by Giuseppe Ridino because its performance is not good to process image data.
You can get the original version from:
MATLAB Central > File Exchange > Communications > Coding and Information Theory > LZW Compression Algorithm
Haiyong Xu (2020). Another LZW compression algorithm (https://www.mathworks.com/matlabcentral/fileexchange/14741-another-lzw-compression-algorithm), MATLAB Central File Exchange. Retrieved .