# How to undo the quantization step in DCT?

How can I do point by point multiplication of the quantized DCT coefficients with the quantization matrix before computing the inverse DCT for each block? I want to modify the reconstruction algorithm to approximately undo the quantization step shown here:

for i = 1:Blocks
for j=1:Blocks
irange = (i-1)*8+1:(i-1)*8+8;
jrange = (j-1)*8+1:(j-1)*8+8;
quantblock = round(y(irange,jrange)./Q);
quant_DCTblocks(irange,jrange) = quantblock;
end
end
figure
imagesc(quant_DCTblocks)
colormap(gray)
set(gca,'Xtick',[])
set(gca,'Ytick',[])
axis('square')
title('quantized DCT Coeffs')