How to import single input and three output data (of simulink model) stored in workspace, using system identification app (present in apps option) in matlab ?

3 views (last 30 days)
I want to design a model predictive controller (MPC) for V2G system in MATLAB, the model of V2G system is simulated in simulink. In this model, there is one input (say x) and three outputs (say y1, y2, y3), and after running the simulation, the data of input and three outputs are stored in workspace. I know that the transfer function approach is not possible for a single input, multiple output system, so I am going for state space approach. I want to derive the state space equation (in order to design a model predictive controller) using this one input and three outputs using system identification app (present in apps option). The problem is that I am unable to import the input and three outputs using the import option (then time domain option) present in system identification, it is showing error (when I am trying to put input as input and the three outputs separated by commas as output). Can anybode help me, how to import single input and three output data (of simulink model) stored in workspace, using system identification app.
I want just a suggestion or clue or idea. I am not asking for an exact solution to the problem.

Answers (1)

Emmanouil Tzorakoleftherakis
Have you looked at this example which trains a state space model and then uses it for MPC design?

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!