?? givens.m
字號:
function [c,s]=givens(A)
%Givens變換得到變換矩陣的參數
if A(2)==0
c=1;
s=0;
elseif abs(A(2))>=abs(A(1))
t=A(1)/A(2);
s=(1+t^2)^(-1/2);
c=s*t;
else
t=A(2)/A(1);
c=(1+t^2)^(-1/2);
s=c*t;
end
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -