Created
February 13, 2014 03:54
-
-
Save GustavoKatel/8969458 to your computer and use it in GitHub Desktop.
This function cleans a slice of the spectrum according to the values on 'start_freq' and 'end_freq' (optional)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [ wav ] = wav_clean( wav_in, start_freq, end_freq ) | |
%wav_clean This function cleans a slice of the spectrum according to the | |
%values on 'start_freq' and 'end_freq' (optional) | |
wav = wav_in; | |
if nargin == 2 | |
end_freq = size(wav, 1); | |
end | |
for i=start_freq:end_freq | |
wav(i) = 0; | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment