如何在Matlab脚本生成的python中调用dll?

问题描述

我必须在dll 3.6.10(anaconda)中加载dll,该文件包含使用matlab编译器生成的Matlab脚本。我把该程序放在下面,但是我不知道除了它给我的错误以外,我是否错了。程序结束时应启动matlab运行时,并把图形作为输出

import sys
import clr

sys.path.append(r"dll path")
clr.AddReference("dllname")

from dllname import Class
y=Class(r"path of the file that is recalled in matlab on which it has to do the operations)

程序给我的错误如下:

from dllname import Class
ImportError: cannot import name 'Class'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)