This function performs self-adaptive noise cancellation on a signal x. The filter length is L, and mu is the adaptation rate. The output is a structure containing the filter weight and the error between the signal and the filtered signal.
njj1 (2020). sanc(x,L,mu,delta) (https://www.mathworks.com/matlabcentral/fileexchange/65840-sanc-x-l-mu-delta), MATLAB Central File Exchange. Retrieved .
Added a few notes.
Added a delay value "delta" for lagging the signal by a specified amount