mat2np
MAT2NP Convert a MATLAB numeric/logical array to py.numpy.ndarray. P = mat2np (A) is equivalent to py.numpy.array (A) and matches the MATLAB R2026a Python interface conversion of real numeric arrays to NumPy when NumPy is available. Supported classes: double, single, logical, and integer types that py.numpy.array accepts. Convert back with np2mat (P) or double (P). See also np2mat, cell2py, py.numpy.array, py.numpy.ndarray.