Image Sampling And Quantization Matlab Code