arokem / python-matlab-bridge

A simple Python => MATLAB(R) interface and a matlab_magic for ipython
BSD 2-Clause "Simplified" License
335 stars 96 forks source link

Silent crash when passing numpy array into mlab.run_func #250

Open nipunagarwala opened 7 years ago

nipunagarwala commented 7 years ago

I am trying to run the following function from a python script: results = mlab.run_func('imTransform.m', {'arg1': curImage, 'arg2':1, 'arg3': 0.8, 'arg4': 0.5})

where curImage is a 2D numpy array. But when I try to print out results['result'], then nothing is printed out and results['success'] prints out failed. How do I pass numpy arrays into matlab? Thanks!

AnryYang commented 7 years ago

Have you solved this? I cannot pass a numpy array as a parameter to the matlab function either.