Js Find Index Array Of Structures Matlab