I created a local data array in my Stateflow chart with name 'LocalArray'. In the data dialog box, I specified its size to be 10 under the 'General' tab and I specified its initial value to be '[1:10]' in the 'Value Attributes' tab. When I try to run the model, I receive the following error message:
Expression '[1:10]' for initial value of data 'LocalArray' must evaluate to a scalar.
Best Answer