注册 登录
编程论坛 VC++/MFC

用matcom把matlab自带的函数转换成vc来实现,为什么出现好多错误啊,求指教

小精豆 发布于 2013-09-24 20:15, 784 次点击
Licensed to FREE.
Using Visual C++ : Target WinNT/Win95 (Win32)
imlincomb : Translating D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m
Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 84: 'Z = imlincombc(images, scalars, outputClass);'
'imlincombc' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 87: 'Z = imlincombc(images, scalars, outputClass);'
'imlincombc' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 93: 'valid = numel(images) == 2 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 93: 'valid = numel(images) == 2 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 99: 'valid = numel(images) == 2 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 99: 'valid = numel(images) == 2 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 105: 'valid = numel(images) == 2 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 105: 'valid = numel(images) == 2 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 111: 'valid = numel(images) == 1 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 111: 'valid = numel(images) == 1 && numel(scalars) == 2 && ...'
'numel' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 117: 'iptchecknargin(2, Inf, nargin, mfilename);'
'iptchecknargin' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 122: 'output_class = iptcheckstrs(varargin{end}, valid_strings, mfilename, ...'
'iptcheckstrs' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 141: 'iptcheckinput(varargin{p}, {'double'}, {'real' 'nonsparse' 'scalar'}, ...'
'iptcheckinput' was not found. Please debug the code.

Error D:\Program Files\MATLAB\R2010a\toolbox\images\images\imlincomb.m 155: 'msg = sprintf('Internal error: %s is not valid.',upper(string));'
'mstring' was not found. Please debug the code.

--------------MATCOM DONE-------------------------------------------
3 回复
#2
yuccn2013-09-24 21:27
'imlincombc' was not found. Please debug the code.
'numel' was not found. Please debug the code.

不是说的很明白了吗?
没有用过matcom
估计转换后要做下修改才行吧
#3
小精豆2013-10-13 20:49
关键是不会修改
#4
jia31112013-10-13 21:18
哇,咱在仰望,完全不懂
1