Find the characteristic polynomial of a Pascal Matrix of order 4.
X = pascal(4)
X = 4×4
1 1 1 1
1 2 3 4
1 3 6 10
1 4 10 20
p = poly(X)
p = 1×5
1.0000 -29.0000 72.0000 -29.0000 1.0000
The characteristic polynomial is
Pascal matrices have the property that the vector of coefficients of the characteristic polynomial is the same forward and backward (palindromic).
Substitute the matrix, X, into the characteristic equation, p. The result is very close to being a zero matrix. This example is an instance of the Cayley–Hamilton theorem, where a matrix satisfies its own characteristic equation.
Polynomial coefficients, specified as a vector. For example,
the vector [1 0 1] represents the polynomial ,
and the vector [3.13 -2.21 5.99] represents the
polynomial .
The polyvalm function
fully supports GPU arrays. To run the function on a GPU, specify the input data as a gpuArray (Parallel Computing Toolbox). For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.