%% Roots of Quartic Polynomial
% Solve the equation x^4 - 1 = 0.
% Create a vector to represent the polynomial, then find the roots.

p = [1 0 0 0 -1];
r = roots(p)

% Copyright 2015 The MathWorks, Inc.