'Initialize writer for matlab 5 format files
Parameters
%(do_compression)s
%(unicode_strings)s
global_vars : None or sequence of strings, optional
Names of variables to be marked as global for matlab
%(long_fields)s
%(oned_as)s'

@docfiller
def __init__(self, file_stream, do_compression=False, unicode_strings=False, global_vars=None, long_field_names=False, oned_as='row'):

    self.file_stream = file_stream
    self.do_compression = do_compression
    self.unicode_strings = unicode_strings
    if global_vars:
        self.global_vars = global_vars
    else:
        self.global_vars = []
    self.long_field_names = long_field_names
    self.oned_as = oned_as
    self._matrix_writer = None
