About Downsample in simulink without using rate transition block

Hello,
I want to use simulink to downsample a signal. When I use the downsample factor 3, I expect to have [1,4,7,10,……], however in the model, it always give me the interpolate values in between the time series data. [1,1,1,4,4,4,7,7,7,10,……] Could you please advise?
Actually, my data is sampled per 0.5ms, and then I need to get the mean value of each 200 data or every 100ms (Not moving mehtod. similar like method one in attched pic). And then, I need to have moving average (this is moving averrage as shown method 2 in the pic) for each 15 consecutive mean values gotten from last step. Rate transition block can not be used since the whole model is used for a controller with a function call. Do you have other suggestions?
Thanks

Answers (0)

Products

Release

R2019a

Asked:

on 11 Jul 2021

Edited:

on 11 Jul 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!