411 REFERENCE · Wikibooks
Linear Algebra and the C Language/a0nx
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
__NOTOC__
EValue = EVectorT A EVector
Copy/Paste into the octave window
% Matrix 2x2 -------------
clear, clc
A = round(10*randn(2)); %% A matrix 2x2
A = A'*A %% A symetric matrix
% Eigenvalues Eigenvectors
[Evectors,Evalues] = eigs(A)
Evalues = Evectors' * A * Evectors
%%
EValue = EVectorT B EVector
Copy/Paste into the octave window
% Matrix 3x3 ---------------------
clear, clc
B = round(10*randn(3)); %% A matrix 3x3
B = B'*B %% A symetric matrix
% Eigenvalues Eigenvectors
[Evectors,Evalues] = eigs(B)
Evalues = Evectors' * B * Evectors
%%