?? planerot.m
字號:
function [G,x] = planerot(x)
%PLANEROT Givens plane rotation.
% [G,Y] = PLANEROT(X), where X is a 2-component column vector,
% returns a 2-by-2 orthogonal matrix G so that Y = G*X has Y(2) = 0.
%
% Class support for input X:
% float: double, single
%
% See also QRINSERT, QRDELETE.
% Copyright 1984-2004 The MathWorks, Inc.
% $Revision: 5.10.4.1 $ $Date: 2004/04/10 23:30:05 $
if x(2) ~= 0
r = norm(x);
G = [x'; -x(2) x(1)]/r;
x = [r; 0];
else
G = eye(2,class(x));
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -