www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/+cgsimfill/@Table/toString.m

    function Tstr= toString(T)
%TOSTRING display string for table
% 
% Tstr= toString(T)

%  Copyright 2005-2008 The MathWorks, Inc.

if T.Extrapolate
    ExtrapolateStr= 'x';
else
    ExtrapolateStr= ' ';
end
if T.ClearMask
    MaskStr= 'x';
else
    MaskStr= ' ';
end
if isempty(T.Bounds)
    Bnds= get(T.Object,'clips');
else
    Bnds= T.Bounds(1,:)*T.ScaleFactor';
end
bs= sprintf('%.5g,',Bnds);
GB = T.GradientBounds';
if ~isempty(GB)
    gs= sprintf('%.5g,',GB(:));
end

Tstr= sprintf('%-35s %1s %1s [%s] [%s]',T.Name,MaskStr,ExtrapolateStr,bs(1:end-1),gs(1:end-1));