matlab做的COM组件怎样使用神经网络工具箱?

来源:百度知道 编辑:UC知道 时间:2024/05/26 10:00:20
利用神经网络工具箱写了个简单的M函数,做成COM组件,在VC中无法使用...疑惑中...需要包含什么吗?(其他matlab基本函数做的组件可以使用)
初学matlab,不会啊...急求急求~!!!
之前查过一些资料,据说是采用com方式能够调用神经网络工具箱函数
但是我用com bulider 把m函数转换成com组件得时候 发现以下问题
“trian”函数无法使用 “newc” 函数(建立bp网络的函数)无法使用
com builde报错如下:
The MATLAB Compiler does not currently support MATLAB object-oriented programming. References to the method "train" will produce a run-time error.
The MATLAB Compiler does not currently support MATLAB object-oriented programming. References to the method "init" will produce a run-time error.
The MATLAB Compiler does not currently support MATLAB object-oriented programming. References to the method "network" will produce a run-time error.
(“newc” 对应得m文件内部使用了 “init” 和 “network”)
“sim”函数也无法使用 原因如下:
The "sim" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.
向大家求助,请问有无解决办法或者替代得函数 特别是“train” 和“newc” 的解决

我去年下半年一直在做matlab与C++的混编。实用的就是COM组件。因为我也用到了神经网络工具箱,但是在编译过后,根本就连结不上。最后从网上找了很多的方法,都没有得以完满地解决。最后只得放弃使用工具箱函数,才能连接成功。建议你放弃使用工具箱函数用matlab一步一步的编写算法吧。这方面的现成程序网上有很多,你可以参考一下。