MATLAB Answers


Question about Buffer block

Asked by Owen
on 9 Oct 2012


I have a Buffer block with the depth = 10 and a frame based vector with the length = 5.

After a simulation I notice that 2 vectors sequeeze into this buffer like this:


But I want the following: [1;2;3;4;5;0;0;0;0;0]

That is, every time the buffer will be loaded newly. Is it possible with the Buffer block?

Thanks Senmeis




1 Answer

Answer by Kaustubha Govind
on 9 Oct 2012
Edited by Kaustubha Govind
on 9 Oct 2012

So it looks like you simply want your input concatenated with 5 zeros? Is this correct? If so, you might just want to use the Concatenate block and provide a Constant block with value zeros(5, 1) as the second input.


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!