MATLAB: I need to factor a symbolic polynomial for example x^2-1

factorsymbolicSymbolic Math Toolbox

i need an example of how to use the symbolic factor of matworks. if you can tell me how to factor x^2-1 i can take it from there
thank you
david

Best Answer

Just define x as symbolic variable and use factor() for your polynomial.
Related Question