www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgminmaxexpr/charlist.m
function str = charlist(m,doFull) %CHARLIST expression equation as string % str = charlist(v) % str = charlist(v,doFull) % The equation is terminated at features if doFull is false. The default for doFull is false. % Copyright 2000-2012 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin<2 doFull=false; end if isempty(m) str = ''; else inputs = pveceval(getinputs(m), @(e) charlist(e,doFull)); if m.min fun = 'MIN'; else fun = 'MAX'; end str = sprintf('%s(%s)',fun,strjoin(inputs,', ')); end