필터 지우기
필터 지우기

How do I extract a state space model from a Simulink subsystem?

조회 수: 9 (최근 30일)
PaulS
PaulS 2015년 4월 30일
편집: Sainath Varikuti 2015년 5월 1일
Hi,
in order to determine parameters for my control design I need to extract a state space model from a Simulink model. Using the linmod command on a Simulink model works fine but I want to implement the model as a subsystem into another model. sys=linmod('model/subs') is not working and sys=linearize('model/subs') returns the error "SubSystem block does not have a parameter named 'SimulationStatus'".
Any suggestions?
thanks in advance
Paul

답변 (1개)

Sainath Varikuti
Sainath Varikuti 2015년 5월 1일
편집: Sainath Varikuti 2015년 5월 1일
'linmod' works for Root level models only and not for the subsystems. The input and output points for the linearization are those corresponding to Inports and Outports blocks at the root level of the model. One workaround would be to extract the model in the subsystem to a top-level model and then perform linearization using 'linmod'.
Alternatively you can use 'linearize' function in the Simulink Control Design Toolbox to linearize model subsystems.

카테고리

Help CenterFile Exchange에서 Trimming and Linearization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by