www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RootsOfQuarticPolynomialExample.m

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

% Copyright 2015 The MathWorks, Inc.

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