Get Index Of Value In Array Matlab For Loop