quantize.m