声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1174|回复: 2

[混合编程] matlab和VC混合编程遇到的问题

[复制链接]
发表于 2006-10-3 09:27 | 显示全部楼层 |阅读模式

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

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

x
请路过的大侠多多指点
       小女子正在用matcom实现matlab和VC的混合编程(用于图象处理)
      将matlab的m文件导入VC出现下列错误提示:
     #line 3 "c:/matlab7/work/matlibimage.m"
_   K = error(TM("'rgb2gray' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  rgb2gray=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(I);
    #line 4 "c:/matlab7/work/matlibimage.m"
_   J = error(TM("'medfilt2' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  medfilt2=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(K);
    #line 5 "c:/matlab7/work/matlibimage.m"
_   display( subplot(3.0,3.0,1.0) );
    #line 5 "c:/matlab7/work/matlibimage.m"
_   imshow((CL(I)));
    #line 6 "c:/matlab7/work/matlibimage.m"
_   se = error(TM("'strel' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  strel=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(TM("disk"),40.0);
    #line 7 "c:/matlab7/work/matlibimage.m"
_   Itop = error(TM("'imtophat' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  imtophat=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(J,se);
    #line 8 "c:/matlab7/work/matlibimage.m"
_   Ibot = error(TM("'imbothat' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  imbothat=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(J,se);
    #line 9 "c:/matlab7/work/matlibimage.m"
_   Ienhance = error(TM("'imsubtract' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  imsubtract=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(error(TM("'imadd' was not found.\n\nIf it is a variable, make sure it is initialized before first use,\nfor example:  imadd=[];\n\nIf it is a m-file, please copy it to the current directory or add\nits directory to the matlabpath.\n") \
      )(Itop,J),Ibot);
     请大侠多多指点,小女子不胜感激

[ 本帖最后由 范芳蕾 于 2006-10-3 09:32 编辑 ]
回复
分享到:

使用道具 举报

发表于 2006-10-3 10:46 | 显示全部楼层
原帖由 范芳蕾 于 2006-10-3 09:27 发表
请路过的大侠多多指点
       小女子正在用matcom实现matlab和VC的混合编程(用于图象处理)
      将matlab的m文件导入VC出现下列错误提示:
     #line 3 "c:/matlab7/work/matlibimage.m"
_   K =  ...



用matcom的方式混编不需要导入m文件,建议先阅读论坛帖子“Matcom和Borland C++ Builder混合编程及Matcom使用技巧总结”
 楼主| 发表于 2006-10-6 16:26 | 显示全部楼层

回复 #2 eight 的帖子

谢谢赐教
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-23 22:24 , Processed in 0.086518 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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