Delete getIndex.m