How can one delay a sequence? (MATLAB 2010)
显示 更早的评论
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?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Design Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!