Matlab Huffman Encoding in matrix -
i trying encode matrix have (after calculating frame differences) huffman code having difficulties completing it the matrix wish encode huffman called "amp" something found this: function y = mat2huff(x) %mat2huff huffman encodes matrix. % y = mat2huff(x) huffman encodes matrix x using symbol % probabilities in unit-width histogram bins between x's minimum % , maximum values. encoded data returned structure % y: % y.code huffman-encoded values of x, stored in % uint16 vector. other fields of y contain % additional decoding information, including: % y.min minimum value of x plus 32768 % y.size size of x % y.hist histogram of x % % if x logical, uint8, uint16, uint32, int8, int16, or double, % integer values, can input directly mat2huff. % minimum value of x must representable int16. % % if x double non-integer values---for example, image % values between 0 , 1---first scale x appropria...