title: How to downsample a signal in Matlab
body: <p>I am working with whale call files in .wav file format, the sample rate of the file is Fs = 8kHz. I want to downsample the signal ensuring that with the new sampling rate we can safely distinguish frequencies 0 till 100 Hz. I have tried to use the downsample() matlab function but I am unsure if this is correct. Thank you for your help!</p>
  
  <pre><code>[y,Fs] = audioread('FINS.wav');
  n = 2;
  Fs_down = Fs/2;
  y_down = downsample(y,n);
  </code></pre>