I'm working on Audio Compression using DCT. How do i expand the size of my sample after performing Inverse Discrete Cosine Transform? The code i have written produces an error saying "matrix dimensions must agree" when i try to find the MSE.
X=dct(y,32768);s=framesize*X;b=length(s');ratio=N/b; % N is the length of the original sample
A=idct(X,32768);[rows,columns]= size(A)extra = rows*ceil(numel(X)/rows) - numel(X);MU=reshape([X(:);nan(extra,1)],rows,columns)
Best Answer