function symbolfreqnew = FindSymbolFreq2(coefs, symbolfreq, maxindexmat, minindexmat)

symbolfreqnew = symbolfreq;
[Block_Size_x, Block_Size_y] = size(coefs);

for i=1:Block_Size_x 
   for j=1:Block_Size_y
      symbolfreqnew{i,j}(1,coefs(i,j)-minindexmat(i,j)+1) = symbolfreqnew{i,j}(1,coefs(i,j)-minindexmat(i,j)+1)+1;
   end   
end

