I'm using uencode to quantize matrix this way:
quantized = uencode(impact_factor_matrix,5);
where impact_fator_matrix is a 512x512 matrix of floating point values basically between 0 and 3 a small fragment of this matrix looks like this:
0,0199035905058660 0,0172736449099186 0,0180819705503344
0,0622572806364690 1,13389341902768 1
0,0606586901989121 1,27920429813366 1
so using uencode gives me levels that I need but I can't figure what ranges is used by this function to assign values to quantization levels to be specific for this 3x3 example I get
16 16 16
16 31 31
16 31 31
I can't find out what ranges are used to assiggn to quantization levels. How is this calculated. Thanks in advance.