
Technical discussion about Matlab and issues related to Digital Signal Processing.
Hi, all I am motin. I am new in matlab. I fft a signal. and when i fft i
take just half part of the fft value because replica is ignored and take the
absolute value. now i simple change this value. now i want to regerate the
original signal.
that means i need a mirror of the half value to get the whole signal. but how i
give my code below.
[x, fs]=wavread('attack.wav');
block=256;
n=floor(length(x)/block);
x=x(1:block*n);
Y=reshape(x,n,block);
length(Y)
SP=zeros(n,block/2);
for i=1:n
S=fft(Y(i,:),block);
SP(i,:)=abs(S(1:block/2));
end
imagesc(1:n,1:128,20*log10(SP')), axis xy, colormap(jet);
hi, Now i regenerate the original signal from the matrix SP. But how.
Plzzz can any one help me....
______________________________