General matlab interface code
Returns a temporary file-like object with valid matlab name.
The file name is accessible as the .name attribute of the returned object. The caller is responsible for closing the returned object, at which time the underlying file gets deleted from the filesystem.
Parameters : | dir : str
|
---|---|
Returns : | f : A file-like object. |
Examples
>>> f = mlab_tempfile()
>>> '-' not in f.name
True
>>> f.close()
Put multiline matlab script into script file and run