{ } Raw JSON

bundles / scipy latest / scipy / io / matlab / _mio4 / MatFile4Writer / put_variables

function

scipy.io.matlab._mio4:MatFile4Writer.put_variables

source: /scipy/io/matlab/_mio4.py :610

Signature

def   put_variables ( self mdict write_header = None )

Summary

Write variables in mdict to stream

Parameters

mdict : mapping

mapping with method items return name, contents pairs where name which will appeak in the matlab workspace in file load, and contents is something writeable to a matlab file, such as a NumPy array.

write_header : {None, True, False}

If True, then write the matlab file header before writing the variables. If None (the default) then write the file header if we are at position 0 in the stream. By setting False here, and setting the stream position to the end of the file, you can append variables to a matlab file

Aliases

  • scipy.io.matlab._mio.MatFile4Writer.put_variables