Using Reduce With Array Of Structures Matlab