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

    function str = charlist(relexp,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(relexp)
    str = '';
else
    inputs = getinputs(relexp);
    str = ['(', inputs(1).charlist(doFull), ')', relexp.rel, '(', inputs(2).charlist(doFull), ')'];
end