From: Prashant Sandhi on
Dear friends,

I have problem recieving ADC values. The value is jumping +/-5 values. I am thinking of implementing a buffer which accepts 8 values and then I would like to take the mean of these values so that I can have a constant value of ADC.

I would like to know how can I do this usinng 'Embedded MATLAB function'.

I know that 'Embedded MATLAB function can buffer some values' but i dont know how I can implement that.

I use Simulink, Signal processing blockset.

with best regards,
Prashant