How Stateflow Logs Multidimensional Data

Stateflow® logs each update to a multidimensional signal as a single change. For example, an update to a 2-by-2 matrix A during simulation is logged as a single change, not as four changes (one for each element):

UpdateIs Logged As
A = 1;A single change, even though the statement implies all A[i] = 1
A[1][1] = 1;
A[1][2] = 1;
Two different changes
Was this topic helpful?