佚名通过本文主要向大家介绍了matcom4.5下载,matcom下载,matcom4.5,matcom安装,matcom教程等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: matcom编译class类函数的问题
描述:
描述:
小弟是初学者,需要把matlab中一些函数在matcom中以“.m”文件的形式编译到c++中调用,下面是一段.m文件中的程序:
% Built object.
t = struct('order',order,'depth',depth,'spsch',spsch,'tn',0);
[t.tn,nbtn] = getTN(order,depth,spsch);
t = class(t,'ntree',wtbo(ud));%>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
t = set(t,'wtboInfo',class(t));
%.......................
其中第三行命令:t = class(t,'ntree',wtbo(ud));编译时出现了这样的错误提示:
c:/matcom45/bin/ntree.m(56) : error C2661: 'mclass' : no overloaded function takes 3 parameters
而matlab中class有接受三个参数的,为什么matcom不能接受,请高手们指点指点,小弟感激不尽!