Main Content

Provide Maximum Size for Variable-Size Arrays

To constrain array size for variable-size arrays, do one of the following:

  •  Constrain Array Size Using assert Statements

  •  Restrict Concatenations in a Loop Using coder.varsize with Upper Bounds

  •  Constrain Array Size When Rearranging a Matrix

Related Examples

More About