www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgsumobjective/char.m
function s = char(obj) %CHAR Get a string representation of the item % % S = CHAR(OBJ) returns a string that represents the object. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if isStaticMode(obj) s = getStaticData(obj, 'char_return'); else if isvalid(obj.Expression) s = ['Weighted sum of ' obj.Expression.funcchar]; else s = 'Weighted sum of F()'; end end