% -*- texinfo -*- % @deftypefn {Function File} {} @var{vars} = findsym (@var{f}, @var{n}) % Find symbols in expression @var{f} and return them comma-separated in % string @var{vars}. The symbols are sorted in alphabetic order. If @var{n} % is specified, the @var{n} symbols closest to 'x' are returned. % % Example: % @example % symbols % x=sym('x'); y=sym('y'); f=x^2+3*x*y-y^2; % vars = findsym (f); % vars2 = findsym (f,1); % @end example % % This is intended for m****b compatibility, calls findsymbols. % @end deftypefn % @seealso{findsymbols}