mineig.m

来自「该程序对ofdm系统中mmsnr的信道缩短算法的误码率性率进行了仿真」· M 代码 · 共 22 行

M
22
字号
%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 + =
减小字号Ctrl + -
显示快捷键?