声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1520|回复: 7

[混合编程] 用matlab生成COM组件出现问题

[复制链接]
发表于 2008-8-28 15:31 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
Warning: File: nettest Line: 49 Column: 5
The 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
回复
分享到:

使用道具 举报

发表于 2008-8-28 17:09 | 显示全部楼层
不支持sim调用。
 楼主| 发表于 2008-8-29 09:28 | 显示全部楼层

回复 沙发 kettyx 的帖子

出错的信息好像是不支持newff,sim函数,可是要怎么解决这一问题呢?
发表于 2008-8-30 19:12 | 显示全部楼层
simulink模型可以编译为exe来运行,用VC来调用exe也可以,不过求解器要换成ode23还是什么,因为如果用变步长的求解设置,就会出现run time error,反正你编译的时候它会提示你的。
   不过很奇怪,我以前也是一个包含sim命令的程序,它编译成dll的时候居然没提示我错误,直到我运行VC的程序,才提示我sim命令错误。

评分

1

查看全部评分

 楼主| 发表于 2008-9-1 10:58 | 显示全部楼层

回复 地板 kettyx 的帖子

我看有好多人都已经成功用VC调用MATLAB神经网络的COM组件,做出很好的界面,正在研究中,多多交流!:@P
发表于 2008-9-1 11:55 | 显示全部楼层

他们是调用搭建好的simulink模型么?还是说调用神经网络的函数呢?:loveliness: 如果有可否发一份给我研究一下,yx1mail@126.com。谢谢
我对神经网络不熟,只是想知道他们怎么编译sim命令的。
 楼主| 发表于 2008-9-1 20:41 | 显示全部楼层

回复 6楼 kettyx 的帖子

他们调用了神经网络工具箱,不过不太清楚有没有sim命令,我已经发到你邮箱一份,你可以看一下!
发表于 2008-9-29 12:06 | 显示全部楼层

回复 5楼 luweiping26 的帖子

我也在学习这方面,调用工具箱函数总出错,能把资料发一份给我研究一下吗?
mac324@163.com
谢谢!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-21 03:15 , Processed in 0.065149 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表