Borrar filtros
Borrar filtros

How to use "Load from workspace => Initial state" option to initialize state variables of s-function

1 visualización (últimos 30 días)
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!

Respuesta aceptada

Ryan G
Ryan G el 16 de Jul. de 2012
You can use the following function to utilize the SimState with an s-function:

Más respuestas (0)

Categorías

Más información sobre Block and Blockset Authoring en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by