Why am I unable to initialize the local vector or matrix data in my Stateflow chart?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!