mr_evo
Junior Member level 1
- Joined
- Nov 22, 2013
- Messages
- 15
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 3
- Activity points
- 96
Hello!
I'm trying to implement adaptive lattice algorithm in matlab. It has prediction part which require to use previous samples.
For instance line 2 in figure (see attached) operates with instants of n-1, n-2. In order to implement this in matlab I use 'for loop'. But it can operates only with positive indexes. Thus, I need to use loop for n=3:N.
At the same time in these loop some of the variable should be initilized for each instant n>=1 (see point 2 in figure). But my loop starts from n=3. In this case first two samples of the original signal will be missed.
Do you have any idea how can I use all signal samples with this algorithm?
Thank you in advance!
I'm trying to implement adaptive lattice algorithm in matlab. It has prediction part which require to use previous samples.
For instance line 2 in figure (see attached) operates with instants of n-1, n-2. In order to implement this in matlab I use 'for loop'. But it can operates only with positive indexes. Thus, I need to use loop for n=3:N.
At the same time in these loop some of the variable should be initilized for each instant n>=1 (see point 2 in figure). But my loop starts from n=3. In this case first two samples of the original signal will be missed.
Do you have any idea how can I use all signal samples with this algorithm?
Thank you in advance!