Adaptive Noise Cancellation Using RLS Adaptive Filtering
Show older comments
Hello, I have some problems dealing with Adaptive Noise Cancellation Using RLS Adaptive Filtering. In particular I want to cancel a noise from my signal.
I have: 1) the observed signal = information bearing sign + noise; 2) a reference of the noise.
I would like to compute the adaptive filtering as descripted here: http://www.mathworks.nl/help/dsp/examples/adaptive-noise-cancellation-using-rls-adaptive-filtering.html
My question: looking at the last part of the code, ' Running the RLS filter':
% Hadapt = adaptfilt.rls(M,lam,P0,w0,Zi);
% Hadapt.PersistentMemory = true;
Hts = dsp.TimeScope('TimeSpan',1000,'YLimits',[-2,2]);
for k = 1:10
n = step(Hn); % Noise
s = step(Hs);
d = step(Hd,n) + s;
[y,e] = step(Hadapt,n,d);
step(Hts,[s,e]);
end
Where Hs is:
Hs = dsp.SignalSource(signal,'SamplesPerFrame',100,...
'SignalEndAction','Cyclic repetition');
The variable 'signal' contains the information bearing signal.
I cannot understand why should I use the Hs in the filtering, while I have no informations about the information bearing signal! I only have: 1) observed signal = information bearing sign + noise; 2) reference of noise.
Thank you!
Answers (0)
Categories
Find more on Adaptive Filters in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!