Define a matrix in simulink whose elements are evaluated at some other functions in the same model
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
I need to define a matrix whose elements are to be obtained form another simulink function. I tried using simout to workspace but the problem is that the value is obtained only when the simulation is stopped or paused but I need to update the matrix during simualtion.
Antworten (2)
Raj
am 15 Jul. 2019
0 Stimmen
"to workspace" block updates that workspace after end of simulation. Instead you can use the data store memory block. Use a data store write block to write the matrix into memory and then data store read to read the value wherever required in the model. Set the priorities correctly to avoid 'read before write' condition.
1 Kommentar
Sudipto Saha
am 15 Jul. 2019
stella T
am 15 Jul. 2019
0 Stimmen
Thanks a lot!!
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!