adaptfilt functions

I use different adaptfilt functions for my project, but I have to a little bit change them. Therefore I kindly ask somebody to advise me, how I can view these algorithms mathlab original code or how I can change their coefficients before filtering:
For example I tried to add >ha.coefficien(1)=0 command with changing persistentmemory before filtering:
>ha = adaptfilt.lms(32,mu); >hd.persistentmemory = true; >ha.coefficien(1)=0; >[y,e] = filter(ha,x,d);
But it didn't work and coefficients keep intitial codition.
Thanks in advance for your advice

回答 (1 件)

Honglei Chen
Honglei Chen 2011 年 7 月 5 日

0 投票

Hi Peter,
Maybe I understand it wrong but you cannot directly change LMS filter's coefficients because it is updated in each iteration. To specify the initial filter coefficients and states, you can use the syntax
H = adaptfilt.lms(L,STEPSIZE,LEAKAGE,COEFFS,STATES)
See
help adaptfilt.lms
doc adaptfilt.lms
for details.
HTH,

2 件のコメント

Shravan Anand Komakula
Shravan Anand Komakula 2019 年 9 月 3 日
Undefined variable "adaptfilt" or class "adaptfilt.lms".
ha = adaptfilt.lms(30,mu);
"How to deal with this error"
Honglei Chen
Honglei Chen 2019 年 9 月 4 日
Do you have DSP System Toolbox? You need that to be able to access adaptfilt.
HTH

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSignal Processing Toolbox についてさらに検索

質問済み:

2011 年 7 月 3 日

コメント済み:

2019 年 9 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by