MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
A = [13 42; 7 20];
idx = ['a' 'b' 'c'];
indexIntoArray(A, idx)

Error using indexIntoArray (line 41)
Unable to index into array.

Caused by:
Error using indexIntoArray (line 25)
Indexing array is not numeric.
Indexing array is too large.

26 Error Handling

Free download pdf