polynomial =
% Create example symbolic polynomial.
syms s
rng('default');
coeffs0 = randi([-10 10],1,5);
polynomial = poly2sym(coeffs0, s)
% Extract polynomial coefficients.
coefficients = sym2poly(polynomial)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!