Why is my Data Store Memory's initial value ignored?
4 ビュー (過去 30 日間)
古いコメントを表示
I have a simple model, and I'm using a data store memory to hold a value. I want the intial value to be 60 at the start of the simulation, but everytime I run, it initializes to 0. Why could that be? I'm using R2018b.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200919/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200920/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200921/image.png)
0 件のコメント
採用された回答
Mark McBroom
2019 年 1 月 21 日
Are specifying intial value in the Data Store Memory block and/or the Z-2 block? With this design I think you will need to initialize both.
You might want to also consider redesigning your model so that you are not using data stores.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!