www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conellipsoid/texdescription.m

    function s=texdescription(obj,IsBoundary)
%TEXDESCRIPTION  Return tex description string
%
%  S = TEXDESCRIPTION(OBJ)
%  S = TEXDESCRIPTION(OBJ,ISBOUNDARY)


%  Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc.

if nargin<2 || ~IsBoundary
    s={'An ellipsoid constraint keeps only the points within';...
      'the ellipsoid defined by \bf(X-X_c)W(X-X_c)'' \leq 1\rm.'};
else
    s={'An ellipsoid boundary keeps only the points within';...
        'the ellipsoid defined by \bf(X-X_c)W(X-X_c)'' \leq 1\rm.'};

end