Reconstruct signal after altering peaks on fft process
Show older comments
Hello everybody! I am new to signal processing techniques and so i want to ask a few things about signal reconstruction. Here is my code for what i have done so far
[audio,fs] = audioread("thunder.wav");
%keep the first side of the audio
audio = audio(:,1);
%fft perform
count = 0;
x = fft(audio);
pks = findpeaks(abs(x));
findpeaks(abs(x));
for i = 1:length(pks)
if pks(i,1) > 15.000
count = count + 1;
pks(i,1) = 19.200;
end
end
So, as you can see i have altered all peaks that are above 15,000hz to 19,200hz. From, this point i want to reconstruct the output signal but i want to mantain the alterered peaks. To be panctually, i want somehow to reconstruct my signal from all the peaks included to pks matrix. Is that possible and if it's possible how can i achieve it? Thanks, for your time!
Answers (0)
Categories
Find more on Discrete Fourier and Cosine Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!