MATLAB: How to resolve this error..Index exceeds matrix dimensions. Error in Untitled (line 27) testIMG = imread([‘test\’ a(1).name]);

.

.

Best Answer

The only indexing occurs in a(1) . If this exceed the limits already, a is empty. So check, how a is defined, e.g. using the debugger, to find out, why it is empty.
Related Question