Get Last Index Of An Array In Matlab