用matlab生成COM组件出现问题
Warning: File: nettest Line: 49 Column: 5The MATLAB Compiler does not currently support MATLAB object-oriented programming.References to the method "train" will produce a run-time error.
Warning: File: nettest Line: 48 Column: 23
References to "mc" will produce a run-time error because it is an undefined function or variable.
Parsing file "c:/matlab6p5p1/toolbox/nnet/nnet/minmax.m"
(Referenced from: "c:/matlab6p5p1/work/nettest.m").
Parsing file "c:/matlab6p5p1/toolbox/nnet/nnet/newff.m"
(Referenced from: "c:/matlab6p5p1/work/nettest.m").
Parsing file "c:/matlab6p5p1/toolbox/nnet/nnet/premnmx.m"
(Referenced from: "c:/matlab6p5p1/work/nettest.m").
Warning: File: newff Line: 167 Column: 7
The MATLAB Compiler does not currently support MATLAB object-oriented programming.References to the method "init" will produce a run-time error.
Warning: File: newff Line: 133 Column: 7
The MATLAB Compiler does not currently support MATLAB object-oriented programming.References to the method "network" will produce a run-time error.
Parsing file "c:/matlab6p5p1/toolbox/nnet/nnutils/newnet.m"
(Referenced from: "c:/matlab6p5p1/toolbox/nnet/nnet/newff.m").
Warning: File: c:/matlab6p5p1/work/nettest.m Line: 50 Column: 4
The "sim" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode.
Warning: File: c:/matlab6p5p1/work/nettest.m Line: 66 Column: 4
The "sim" function is only available in MEX mode. A run-time error will occur if this code is executed in stand-alone mode
出现这么多的Warning,该怎么解决?恳请大家帮忙。谢谢!
希望同样做基于COM的matlab与VC混合编程的一起交流提高!
QQ:64035609 不支持sim调用。
回复 沙发 kettyx 的帖子
出错的信息好像是不支持newff,sim函数,可是要怎么解决这一问题呢? simulink模型可以编译为exe来运行,用VC来调用exe也可以,不过求解器要换成ode23还是什么,因为如果用变步长的求解设置,就会出现run time error,反正你编译的时候它会提示你的。不过很奇怪,我以前也是一个包含sim命令的程序,它编译成dll的时候居然没提示我错误,直到我运行VC的程序,才提示我sim命令错误。
回复 地板 kettyx 的帖子
我看有好多人都已经成功用VC调用MATLAB神经网络的COM组件,做出很好的界面,正在研究中,多多交流!:@P 原帖由 luweiping26 于 2008-9-1 10:58 发表 http://www.chinavib.com/forum/images/common/back.gif我看有好多人都已经成功用VC调用MATLAB神经网络的COM组件,做出很好的界面,正在研究中,多多交流!:@P
他们是调用搭建好的simulink模型么?还是说调用神经网络的函数呢?:loveliness: 如果有可否发一份给我研究一下,yx1mail@126.com。谢谢
我对神经网络不熟,只是想知道他们怎么编译sim命令的。
回复 6楼 kettyx 的帖子
他们调用了神经网络工具箱,不过不太清楚有没有sim命令,我已经发到你邮箱一份,你可以看一下!回复 5楼 luweiping26 的帖子
我也在学习这方面,调用工具箱函数总出错,能把资料发一份给我研究一下吗?mac324@163.com
谢谢!
页:
[1]