'Same as writing structs, except different mx class, and extra
classname element after header'

def write_object(self, arr):

    self.write_header(matdims(arr, self.oned_as), mxOBJECT_CLASS)
    self.write_element(np.array(arr.classname, dtype='S'), mdtype=miINT8)
    self._write_items(arr)
