@docfiller<EOL><INDENT>def __init__(self, file_stream,<EOL>do_compression=False,<EOL>unicode_strings=False,<EOL>global_vars=None,<EOL>long_field_names=False,<EOL>oned_as='<STR_LIT>'):<DEDENT>
self.file_stream = file_stream<EOL>self.do_compression = do_compression<EOL>self.unicode_strings = unicode_strings<EOL>if global_vars:<EOL><INDENT>self.global_vars = global_vars<EOL><DEDENT>else:<EOL><INDENT>self.global_vars = []<EOL><DEDENT>self.long_field_names = long_field_names<EOL>self.oned_as = oned_as<EOL>self._matrix_writer = None<EOL>
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