Index exceeds the number of array elements (1) ERROR - not sure why.
1 view (last 30 days)
Show older comments
Commented: Wesser on 25 Feb 2021
I keep getting this error...but don't know why! It's a simple addition equation...for a series of vectors.
My code and excel data file are attached. Thank you for any and all help with this!!
Index exceeds the number of array elements (1).
Error in WSBModel (line 179)
David Hill on 25 Feb 2021
If you break your script at line 179, you can clearly see the problem. S10 is only a 1x1 array and needs to be a 49x1 like all the other variables. Something is wrong with S10.
More Answers (0)
Find more on Matrix Indexing 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!