MATLAB: ‘Decimation’ Error in Simulink

decimation errorsimulink

Hi all,
I hope you are well. When I run my Simulink model, I met the issue 'The 'Decimation' option must be a positive integer'. Does anyone know why it occurs?
Thank you for your help.
Di

Best Answer

Follow the link of the error message to find the involved block. You must have provied an incorrect number for the "Decimation" parameter, which is a factor, n, which writes data at every nth time that the block executes. It's value must be a positive integer.