This error in general happens if the dimension of a variable that should be defined as an array is 1. In this case, the decVar functions declare a scalar, which results in a compilation error when due to it being accessed as an array in the code (i.e., with [i]).
This is a problem because it means that the toolbox does not currently work for SISO systems, nor for systems with a single inputs.
To solver this, we need to rethink how variables are declared. In particular, which should be the fields of the dictionary passed to the decVar function. And if they should be so restricted to only having 5 fields, as is currently the case.
This error in general happens if the dimension of a variable that should be defined as an array is 1. In this case, the decVar functions declare a scalar, which results in a compilation error when due to it being accessed as an array in the code (i.e., with [i]).
This is a problem because it means that the toolbox does not currently work for SISO systems, nor for systems with a single inputs.
To solver this, we need to rethink how variables are declared. In particular, which should be the fields of the dictionary passed to the decVar function. And if they should be so restricted to only having 5 fields, as is currently the case.