Problem with samples

Hi,
I am working with simulink and There is a row in an array that sends out data in the following manner. [1,3,4,5,21,3,1,2,4,2,3,2,23,23,3,4,2].
I would like to analyze 5 elements at once. When i keep samples per frame = 5, output is [1,3,4,5,21] [3,1,2,4,2] [3,2,23,23,3] [4,2,...]
but I am actually looking to analyze them in the following manner.
[1,3,4,5,21] [4,5,21,3,1] [21,3,1,2,4] [2,4,2,3,2] [3,2,23,23] [23,23,3,4,2]
Is there a way to do this? Please let me know. Thank you.

 採用された回答

Guy Rouleau
Guy Rouleau 2011 年 10 月 27 日

0 投票

Looks like you need to buffer with a size of 5 and overlap of 3.

2 件のコメント

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 28 日
It is this Buffer block from the DSP System toolbox.
http://www.mathworks.com/help/toolbox/dsp/ref/buffer.html
Srikanth Mantha
Srikanth Mantha 2011 年 10 月 28 日
Thank you so much

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

その他の回答 (1 件)

Srikanth Mantha
Srikanth Mantha 2011 年 10 月 27 日

0 投票

Hello Rouleau,
Thanks for the reply. I am relatively new to the Simulink. Could you please elaborate your answer? How can I overlap? I see that there is a Overlap-ADD FFT filter in the simulink. Were you pointing to some like this? Thanks again.

2 件のコメント

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 28 日
Set the buffer size and overlap at the dialog window of the Buffer block.
Srikanth Mantha
Srikanth Mantha 2011 年 10 月 28 日
Thank you so much.

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

Community Treasure Hunt

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

Start Hunting!

Translated by