% poly_create_eg.m
% Simple Example of how to create and solve a polynomial in MATLAB


r = [-1,1]; % Set roots

p = poly(r) % Creat a poly and print;


r1 = roots(p) % Solve poly,p