Is it possible to convert the whole Simulink model into a state space one?

3 visualizaciones (últimos 30 días)
Dear friends
In fact I am thinking of simulate a system, whose terminal information at t_k is known, and the information at t_0 is unknown. If I try to run Simulink model, it is prompted that since t_0 is smaller than the "initial time" t_k, simulation failed. So
(1) Is there a way to set the Simulink environment such that it can be simulated?
(2) If not, can I extract the state space model from the whole Simulink model such that ode45 or other solvers can be used to solve the problem?
Thanks
Dingyu

Respuestas (1)

Jesús Zambrano
Jesús Zambrano el 7 de Feb. de 2020
Hi Dingyu,
You first have to create the input vector(s) to your model and collect the simulation results or output vector(s).
With this done, you can follow a standard procedure for state space identification, for example following the steps in this link https://www.mathworks.com/help/releases/R2019b/ident/ref/estimatestatespacemodel.html
Hope it can help with your question.
Best,
Jesús

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by