This means that the code is attempting to refer to an index of some variable, but the variable is not large enough in that dimension. In this case the dimension is the second dimension ("index in position 2") and the maximum index you can reference is 2 ("(must not exceed 2)").
So basically Capacitance and/or inductance has two columns, but the code is trying to access the third or higher column, which doesn't exist.
3 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/660943-index-in-position-2-exceeds-array-bounds#comment_1158383
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/660943-index-in-position-2-exceeds-array-bounds#comment_1158383
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/660943-index-in-position-2-exceeds-array-bounds#comment_1158418
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/660943-index-in-position-2-exceeds-array-bounds#comment_1158418
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/660943-index-in-position-2-exceeds-array-bounds#comment_1158448
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/660943-index-in-position-2-exceeds-array-bounds#comment_1158448
Sign in to comment.