MATLAB: LMS filter export

dspfilteringlms

Hello, Is it possible to export the h[n] of an LMS filter created based on two training signals using the following commands:
hlms2=dsp.LMSFilter('StepSize', 0.0001, 'Length' , 600)
[output,err]=step(hlms2,x_echo_trainset_orig,new)
in order to use it with another signal as echo remover?

Best Answer

The step method returns the filter coefficients as an optional output argument:
[output,err,coeffs] = step(hlms2,x_echo_trainset_orig,new);
HTH.
Rick