collect
Symbolic
Collect terms in a polynomial expression by the given variable.
Syntax
collect(expr, var)
Examples
collect('x^2 + 2*x + x + 3', 'x')▶ RunSee Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab