How can one delay a sequence? (MATLAB 2010)

2 Ansichten (letzte 30 Tage)
Nathalie
Nathalie am 7 Okt. 2014
This shouldn't be so hard, but I can't figure it. On Simulink, I'm using and S-Function to create a recursive least squares parameter estimator. So far, I'm using a delay blocks, but if I want to estimate a more complex model, it's not going to work. I have seen examples, in which people can crop the vectors, but I can't remember. What I want is:
Lets say I have the sequence: y = [ 1 2 3 4 5 6]
I want to have y(k-1) = [0 1 2 3 4 5 ] y(k-2) = [0 0 1 2 3 4 ]
and so on (There are 0s because it is supposed that before t=0, the value of the signal was 0). So, how do I go on about it?

Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by