Find Element Index In Array Matlab Simulink Project