Typescript Array Find Elements Matlab Simulink