bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / matlab / _mio4 / MatFile4Writer / put_variables
function
scipy.io.matlab._mio4:MatFile4Writer.put_variables
source: build-install/usr/lib/python3.14/site-packages/scipy/io/matlab/_mio4.py:610
Signature
def put_variables(self, mdict, write_header = None)Summary
Write variables in mdict to stream
Parameters
mdict: mappingmapping with method
itemsreturn name, contents pairs wherenamewhich will appeak in the matlab workspace in file load, andcontentsis 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