title: How to remove header of a wavfile in Matlab
body: <p>I need to remove first 1024 bytes of a wave file. I tried to do but I got corrupted/distorted wavfile:</p>
  
  <pre><code>wavFile = fopen(fullFileName, 'r'); % Open file for reading 
  fseek (wavFile, 1024, -1);% Skip past header, which is 1024 bytes long.
  wF = fread (wavFile, inf, 'int16');% 16-bit signed integers
  wF = wF(:)';
  newWavFile = fopen(strcat('new_',fileNames(fileNo).name), 'w+');% Open file for reading
  fwrite(newWavFile,wF);
  fclose(wavFile);
  </code></pre>
  
  <p>What can be the problem?</p>