How to use "Load from workspace => Initial state" option to initialize state variables of s-function
조회 수: 1 (최근 30일)
이전 댓글 표시
hello! The option of "Load from workspace => Initial state" is used to let simulation start from last time. But I find that it only acts on the inherent blocks of simulink, such as the initial voltage of the capacitor, while no effects on s-function. The s-function still use the values given in "mdlInitializeConditions()". How can I let it use the values in "Initial state"? Thank you!
댓글 수: 0
채택된 답변
Ryan G
2012년 7월 16일
You can use the following function to utilize the SimState with an s-function:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!