Aller au contenu

Mathc matrices/028

Un livre de Wikilivres.


Valeurs propres. Vecteurs propres

Copy/Paste into the octave window
%Matrix 2x2 -------------

A = round(randn(2));    %% A matrix 2x2
A = A'*A                %% A symetric matrix

% Eigenvalues
eigvals = eigs(A)
%%
Copy/Paste into the octave window
% Matrix 3x3 ---------------------

B = round(randn(3));      %% A matrix 3x3
B = B'*B                  %% A symetric matrix

% Eigenvalues
eigvals = eigs(B)
%%