www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexpr/cgexpr.m
function e = cgexpr(e) %CGEXPR Constructor for the main Expression object % % This is an abstract class and should not be instantiated by anything % except a constructor of a child class. % % Expressions are a subclass of mbcreference. After construction the % reference pointer needs to be created by calling xregpointer on the % object. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~nargin e = struct('name','', ... 'Inputs', null(xregpointer, 0), ... 'Version',4); r = mbcreference; elseif isstruct(e) r = e.mbcreference; e = rmfield(e, 'mbcreference'); end if ~isobject(e) e = class(e,'cgexpr',r); end