I am a little bit confused about how to use transplant.Matlab
I want to pass a python function and several other parameters to a matlab function, for example matlab.fminsearch. So I try
import transplant
matlab = transplant.Matlab()
def pyfunc(x):
return x+1
func=transplant.MatlabFunction(matlab,pyfunc)
But func(1) returns
TypeError: can not serialize 'function' object
Many Thanks