collect
COLLECT Collect like terms (MATLAB compat). GitLab #322 / nexus#2056 For sym: method dispatch on classdef sym (scripts/symbolic/sym.m). For classdef sym: group powers of a variable (see sym.collect). For numeric: return unchanged. For char polynomial-like: collapse spaces.