clear allfprintf(Reading data.)data=imread(cameraman.tif);data=uint8(data);%读入数据,并将数据限制为uint8fprintf(Done!n)%编码压缩fprintf(compressing data.);zipped,info=norm2huff(data);fprintf(Done!n)%解压缩fprintf(compressing data.);unzipped=huff2norm(zipped,info);fprintf(Done!n)%测试是否无失真isOK=isequal(data(:),unzipped(:)%显示压缩效果whos data zipped unzipped function zipped,info=norm2huff(vector)ifisa(vector,uint8), error(input argument must be a u