11 lines
281 B
Matlab
11 lines
281 B
Matlab
function [out] = fmyeigen(x)
|
|
% Defines a function which has eigenvector/eigenvalue as roots
|
|
% x(1) : first component of eigenvector
|
|
% x(2) : second component of eigenvector
|
|
% x(3) : eigenvalue
|
|
|
|
out=[(3-x(3))*x(1)+4*x(2); x(1)+(6-x(3))*x(2); x(1)*x(1)+x(2)*x(2)-1];
|
|
|
|
end
|
|
|