def c1(a1,b1):
a1=2
b1=3
cc=a1+b1
return cc
私はこの機能をtest.py
に保存しました。私はMATLABでこの機能を使用するとき、私はこの問題が発生しました:?"MATLAB R2014bからPythonをロードしようとすると、未定義の変数" py "またはクラス"?
import py.test.* c1(2,3)
Undefined function 'c1' for input arguments
of type 'double'.
py.test.c1(2,3)
Undefined variable "py" or class
"py.test.c1".
どのように私はMATLAB R2014bでの.py機能を使用することができます