I’ve passed a sine sweep wave file into an equalizer plugin I have, now I want to model it in matlab so that I can ‘copy’ the equalizer setting sound. I’ve both in.wav and out.wav audio files and Matlab but I don’t know how to extract a transfer function and then build a model to exactly recreate it using iir filters. Can someone help me please?
The OP is trying to do what we would refer to as channel estimation. I am linking two posts below where this is all worked out in greater detail but do want to make the point first that the choice of "sounding pattern" is important. The channel can only be estimated where there is signal energy in the frequency domain, so the sine sweep is an excellent choice as long as the sweep is over all the frequencies of interest. Other sounding patterns commonly used are pseudo-random noise generated with PN sequences (from linear feedback shift registers: LFSR).
An optimized FFT chirp for channel estimation:
Using Wiener-Hopf equations for least-squares channel estimation:
Related posts on PN sequences as an alternate sounding pattern: