Matlab java.lang.IllegalArgumentException: Invalid range

Java
java.lang.IllegalArgumentException: Invalid range
Source

Also in Java: