Does the Simulink State-Space block use the Matlab function "lsim"?

3 ビュー (過去 30 日間)
Giuseppe Naselli
Giuseppe Naselli 2018 年 12 月 12 日
コメント済み: Raymond Wong 2022 年 7 月 6 日
I wish to know what function is the Simulink State-Space block using when calculating the time domain response of a state-spase system

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2018 年 12 月 12 日
The Simulink State-Space block is one of the ways to specify a linear system. The simulation method (or solver) is specified in Simulation, Model Configuration Parameters, Solver. Some of the methods are ode23, ode45, discrete, etc.
Although it is not specified in the document of lsim(), I would assume that lsim() actually uses one of those integration methods or some of the other methods (help ode15s, ode113) to solve the state-space equation and run the simulaiton. Keep in mind that lsim() is for linear system only while other methods could apply to non-linear systems.

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by