MATLAB: Do I see hidden buffers when debugging the Simulink model

bufferssimulink

When debugging my Simulink model, I saw that the debugger refers to some "hidden buffer" blocks that I have not inserted to my model.

Best Answer

Hidden buffers are automatically inserted to the simulation to make sure that some blocks' inputs are contiguous in memory.
They can not be removed but you can replace them by putting "Signal Conversion" block in "Contiguous copy" mode at the same places where you see the hidden buffers. Make sure that "Override optimizations and always copy signal" check box is checked in the "Signal Conversion" blocks you use.
Normally, those buffers should not affect the simulation.