范芳蕾 发表于 2006-10-3 09:27

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

请路过的大侠多多指点
       小女子正在用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 编辑 ]

eight 发表于 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 的帖子

谢谢赐教
页: [1]
查看完整版本: matlab和VC混合编程遇到的问题