Use input vector S-function to define initial conditions x0()
2 ビュー (過去 30 日間)
古いコメントを表示
Is there any way how use input vector S-function to define initial conditions x0(). I know I can define these vector by varible in mask but it isn't good way for me.
Thanks a lot!
0 件のコメント
回答 (1 件)
Kaustubha Govind
2013 年 5 月 1 日
No, this is not possible. At the time that the block Initialize method runs, none of the block's Output methods have fun. So whatever block is upstream to your S-function hasn't yet written to it's output (which becomes the input to the S-function). However, there are some special blocks like the Delay block which have an input port to specify the Initial Condition (S-functions currently do not have this functionality). So perhaps you can somehow use this block in combination with your S-function to achieve what you need?
参考
カテゴリ
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!