Fill Table (Matrix) Online using Simulink

조회 수: 9 (최근 30일)
Christian Gorges
Christian Gorges 2016년 1월 10일
답변: Christian Gorges 2016년 1월 11일
Hey Guys,
I am looking for a method to fill a table or matrix online (in simulation time) with simulink. I simulate a dynamic behauviour and everything runs fine. The model detects special events and I want to count them in a matrix (maybe 10x10) that represents all special events classified in their strength.
What is the best way to do it? I tried using Data Stores but I don't want to define a Data Store for each entry in my matrix. In Matlab I would just declare a matrix and fill it like I want to... but in Simulink?
Thanks for help!

답변 (1개)

Christian Gorges
Christian Gorges 2016년 1월 11일
Already found the solution!
https://de.mathworks.com/matlabcentral/answers/95403-how-to-store-a-table-of-data-using-the-data-store-memory-block-and-then-later-change-particular-elem

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by