Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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