www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgclipexpr/charlist.m

    function str = charlist(c,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(c)
    str = '';
else
    str = sprintf('CLIP(%s,[%g,%g])',charlist(info(getinputs(c)),doFull),c.bound(1),c.bound(2));
end