Removing Simulink's State Order Dependency (Example 3)

버전 1.1.0.1 (31 KB) 작성자: Dan Lluch
Explores how to leverage the 'Structure with Time' Simulink data format to alleviate ordering ...
다운로드 수: 1.6K
업데이트 날짜: 2016/9/1

라이선스 보기

The MathWorks receives many questions relating to Simulink state ordering, state initialization, and Simulink solver performance. Many times customers are not aware of existing capabilities that are available and will solve their current issues.
There are 3 MATLAB central submissions (all separate downloads!) that have been used with multiple customers to show current capabilities.

Example 1 : Explores how Simulink defines its states and what you can do once you know that definition.

Example 2 : Explores using the Simulink Debugger to extract information
from a simulink diagram or simulation run.

Example 3 : Explores how to leverage the 'Structure with Time' Simulink data format to alleviate ordering and index issues on inputs/outputs/states.

This script file will show the following:
1) Remove dependence on Simulink state ordering for Simulink state initialization or state output processing using existing Structure Format option which keys off of full state block path instead of array index.
2) Shows one can initialize only a subset of Simulink states, no need to define complete initial state vector. Uses initial value within Simulink model if not defined within Structure.

Although this example does not do the following explicitly, this Structure Format approach also allows for
? saving and setting continuous, discrete, differing datatype states all at the same time!
? Defining Root Level Input time histories! Defining processing scripts of Root Level Output time histories, or State time histories!

인용 양식

Dan Lluch (2024). Removing Simulink's State Order Dependency (Example 3) (https://www.mathworks.com/matlabcentral/fileexchange/4429-removing-simulink-s-state-order-dependency-example-3), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Verification, Validation, and Test에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

html/

버전 게시됨 릴리스 정보
1.1.0.1

Updated license

1.1.0.0

updated ZIP file for R2010a

1.0.0.0

some robustness changes within MAKESTRUCTURE file to handle models with no continuous or discrete double states.