Pseudo Inverse in Simulink during simulation

2 views (last 30 days)
Good day,
Currently I have the following situation:
So every time step there are three output variables: deltatheta, deltaqdot and deltau (all scalars). Now the following relationship holds:
deltaqdot = A*deltatheta + B*deltau
This means after three time steps I am theoretically able to calculate A and B using the inverse. However, I want to take more measurements into account, for example the last 10. This means I somehow have to store the results and then calculate the pseudo inverse every time step (or at least, starting when 10 time steps passed by from the beginning).
I know there is a pseudo inverse block in Simulink, but I don't know how I can apply this block to measurements of the last 10 time steps for instance.
Any ideas?

Answers (0)

Categories

Find more on General Applications 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!