title: How to Average Data, arriving in Intervals in Simulink
body: <p>I am new to Simulink. I want to do average of the incoming data(which is coming after some intervals) from one block. For Example, Continuous framed data of 42 samples is out from one block. Along with the framed data there is another output(tag) which tells that these frame/samples belong to which category. Tags are numbers from 1-6. The output is random. I want to average the same category data. Like the first frame is of cat1, then after 4 frames cat1 frame again comes. Now how should I average this new frame with the previous one? I want to do this for all the categories. Please help me out in this.</p>