Why is my Data Store Memory's initial value ignored?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Josh Yu
am 21 Jan. 2019
Beantwortet: Mark McBroom
am 21 Jan. 2019
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.



0 Kommentare
Akzeptierte Antwort
Mark McBroom
am 21 Jan. 2019
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!