Linear Algebra and the C Language/a0nw
Copy/Paste into the octave window
%Matrix 2x2 -------------
clear, clc
A = [3 4;
4 2]
% Eigenvalues
eigvals = eigs(A)
%%
Copy/Paste into the octave window
% Matrix 3x3 ---------------------
clear, clc
B = [ 1 3 5 ;
3 2 4 ;
5 4 3 ]
% Eigenvalues
eigvals = eigs(A)
%%