Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Matlab DSP | need to regenerate the original signal.


Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

need to regenerate the original signal. - moti...@yahoo.com - Aug 9 20:37:49 2009

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....

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )