Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

A problem with MATLAB - please help

  1. Apr 29, 2010 #1

    I tried to use wavread comment but on some wave files, it showed me following error:

    Code (Text):
    ??? Error using ==> wavread at 166
    Incorrect chunk size information in WAV file.
    Please help me. thanks a lot.
  2. jcsd
  3. Apr 30, 2010 #2
    This is where it finds the error
    Code (Text):
     if fseek(fid,ck.Size,0) == -1
             error('wavread:InvalidFile', ...
                 'Incorrect chunk size information in WAV file.');
    This is what sends the error

    Code (Text):
     catch exception
        throw(exception);  % line 166
    So yeah, sorry I can't be more help, but you need to look at the first bit of code as this is where it finds an error. (fseek line)
  4. May 1, 2010 #3
    Thanks a lot.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook