如何使用py。 matlab中的命令

时间:2017-12-28 12:16:53

标签: python matlab

我有一个接收4个数组的python函数。当试图从matlab调用该函数时,我得到错误:“来自非结构数组对象的结构内容引用”。谁知道我应该如何使用py。命令调用python?

我的代码是:addpath C:\ Python27

px = num2str(rand(2,10));

py = num2str(rand(2,10));

cx = num2str(rand(2,10));

cy = num2str(rand(2,10));

PY “MyPythonCode.main(PX,PY,CX,CY)”

0 个答案:

没有答案