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

3 次查看(过去 30 天)
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

回答(1 个)

Jesús Zambrano
Jesús Zambrano 2020-2-7
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

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by