Processing a batch of data every T seconds in Simulink
Show older comments
I have set up an enviroment for the simulation of the attitude determination of a satellite in simulink.
The enviroment is split, for now, in two chunks, the first one deals with the creations of the measurements, the second one deals with the attitude determination algorithm.
The situation is as follows: every Ts seconds, a sequence of N measurements is obtained, where N is the number of sensors. These measurements are stored in a matrix like form using the "Buffer" block. The output matrix is a MxN matrix, where M = T/Ts and T is the averaging window length.
What I want to do is: every T seconds I want to process the whole batch of data in a subsytem and obtain an estimate for the attitude. The estimate is recursive, meaning that whenever a new batch of data is obtained it shall be added to the previous one to better refine the estimate.
My issues are: The buffer initial state cannot be set to "NaN", thus I always have an initial value entering in the subsystem at t=0 that I don't want. I wander what is the best solution to achieve recursive data batch estimation every T seconds in simulink.
Accepted Answer
More Answers (1)
Niccolò
on 13 Jun 2025
0 votes
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
