📄 mineig.m
字号:
%MINEIG Minimum eigenvalue and the corresponding eigenvector.% [L, Q] = MINEIG(A) returns the minimum eigenvalue L and the% corresponding eigenvector Q of the square matrix A. Minimum is % in the sense of absolute value if complex eigenvalues exist.%% [L, Q] = MINEIG(A, B) returns the minimum generalized eigenvalue% (返回矩阵A的最小特征值以及与其对应的特征向量)% L and the corresponding generalized eigenvector Q of the square% matrix A. Minimum is in the sense of absolute value if complex eigenvalues exist.function [l, q]=mineig(varargin); [v, d]=eig(varargin{1}); % D是输入矩阵的特征值构成的对角矩阵 % find the minimum eigenvalue and the index to it[l, index]=min(abs(diag(d))); % this is the corresponding eigenvectorq = real(v(:,index));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -