function in2wav(name) fid = fopen(name, 'r'); x = fread(fid, 'int'); fclose(fid); wavwrite(x*(2^-15), 44100, 'wav_out.wav');