function disp(X)
%DISP   Displays a sym as text.
%   DISP(S) displays the scalar or matrix sym, without printing the
%   the sym name.

%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.9 $  $Date: 1997/11/29 01:05:31 $


if isempty(X) 
   disp('[ empty sym ]')
elseif all(size(X) == 1)
   disp(X.s)
else
   % Find maximum string length of the elements of a X
   [m,n] = size(X);
   for k = 1: m*n
      lengths(k) = length(X(k).s);
   end;
   len = max(lengths);

   % Pad each element with the appropriate number of zeros
   for i = 1:m
      str = '[';
      for j = 1:n
         s = X(i,j).s;
         str = [str blanks(len-length(s)+1) X(i,j).s ','];
      end
      str(end) = ']';
      disp(str)
   end
end
if ~isequal(get(0,'FormatSpacing'),'compact')
   disp(' ')
end
