bundles / scipy 1.18.0 / scipy / io / matlab / _mio4 / VarReader4 / read_sub_array
function
scipy.io.matlab._mio4:VarReader4.read_sub_array
source: /scipy/io/matlab/_mio4.py:160
Signature
def read_sub_array(self, hdr, copy = True)Summary
Mat4 read using header hdr dtype and dims
Parameters
hdr: objectobject with attributes
dtype,dims. dtype is assumed to be the correct endiannesscopy: bool, optionalcopies array before return if True (default True) (buffer is usually read only)
Returns
arr: ndarrayof dtype given by
hdrdtypeand shape given byhdrdims
Aliases
scipy.io.matlab._mio4.VarReader4.read_sub_array