Skip to content

TypeError: unsupported Python data type: numpy.ndarray #1

Open
@dlgdwy

Description

@dlgdwy

When I run

x = numpy.random.random((3,2))
y_m = eng.my_matlab_fun(x)
I meet the error:
Traceback (most recent call last):
File "", line 1, in
File "/root/miniconda3/envs/hirdiff/lib/python3.9/site-packages/matlab/engine/matlabengine.py", line 64, in call
future = pythonengine.evaluateFunction(self._engine()._matlab,
TypeError: unsupported Python data type: numpy.ndarray

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions