Skip to content

Instantly share code, notes, and snippets.

@GustavoKatel
Created February 13, 2014 03:54
Show Gist options
  • Save GustavoKatel/8969458 to your computer and use it in GitHub Desktop.
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)
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