📄 align.m
字号:
function kpc=align(f)
%ALIGN Real alignment
% ALIGN(F) return a constant matrix KPC which minimizes
% the least squares error of
% f*kpc - diag(exp(sqrt(-1)*ai))
% over both the elements of kpc and the phases ai.
% Dr M.P. Ford 15th September 1987
% Copyright (c) 1987 by GEC Engineering Research Centre & Cambridge Control Ltd
% MRN0039
if rcond(f) < eps,
error('Input to ALIGN too close to singularity.')
end
ff=f'*f;
rff=real(ff);
x=f*(rff\conj(ff'))*(rff\conj(f'));
p=angle(diag(x))/2;
kpc=rff\(real(f'*diag(exp(sqrt(-1)*p))));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -