FUNCTION REFERENCE
givens
Givens plane rotation.
Givens plane rotation.
Syntax
G = givens(x, y)Syntax
[c, s] = givens(x, y)Returns the 2-by-2 orthogonal matrix G = [c s; -s c] with G * [x; y] = [r; 0]: c = abs(x)/r and s = sign(x)*y/r with r = hypot(x, y) (x = 0 counts as positive), so c >= 0. x = y = 0 gives the identity.
Example
G = givens(3, 4) % [0.6 0.8; -0.8 0.6]Example
[c, s] = givens(-1, -1) % c = s = 0.7071Differences from MATLAB: GNU Octave function (MATLAB offers planerot); real scalars only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.