To create a variable array in Simulink, you can use the Variable Size Signal or Variable-Size Arrays block.
Here's how to use the Variable-Size Arrays block:
[100 1]
.Here's an example usage of the Variable-Size Arrays block in Simulink:
In this example, the Variable-Size Arrays block creates a 1-D array with a maximum size of 100 elements. The Constant block provides a 1-D array with a size of 3 elements. The Concatenate block concatenates the two arrays to create a 1-D array with a size between 3 and 100 elements, depending on the input values.
gistlibby LogSnag