function wav2in(name) x = wavread(name)*(2^15); fid = fopen('wav_in.dat', 'w'); fwrite(fid, fix(x), 'int'); fclose(fid);