PDA

View Full Version : A problem with MATLAB - please help


Sahand_S
Apr29-10, 11:14 AM
Hi.

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

??? Error using ==> wavread at 166
Incorrect chunk size information in WAV file.

Please help me. thanks a lot.

AIR&SPACE
Apr30-10, 03:05 PM
This is where it finds the error
if fseek(fid,ck.Size,0) == -1
error('wavread:InvalidFile', ...
'Incorrect chunk size information in WAV file.');
end

This is what sends the error

catch exception
fclose(fid);
throw(exception); % line 166
end

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)

Sahand_S
May1-10, 09:45 AM
Thanks a lot.