Main Content

Model Statistics for Component Arrays

If your model contains blocks with underlying arrays of components, the Statistics Viewer includes variables that belong to the array members.

For example, in this model, theSimscape Componentblock contains an underlying array of resistors.

In the Statistics Viewer, if you select a statistic with a nonzero value, theSourcessection lists all the variables that fall under this statistic, including the array member variables. For variables that belong to the array members, the full path to the variable in theSourcemem列的编号名称数组ber, such asresistor(1),resistor(2), and so on. If the component array size is1xN, the members are numberedcomp(1), …,comp(N). If the array size isNxM, the members are numberedcomp(1,1),comp(1,2), …,comp(NxM).

If you click an array member variable link in theSourcecolumn, the parent block containing the component array is highlighted in the block diagram.