view test/octave.test/linalg/svd-2.m @ 2728:0bb420249195

[project @ 1997-02-24 22:16:23 by jwe]
author jwe
date Mon, 24 Feb 1997 22:16:27 +0000
parents
children b937a6953b5e
line wrap: on
line source

[u, s, v] = svd ([1, 2; 2, 1]);
x = 1 / sqrt (2);
(abs (u - [-x, -x; -x, x] < sqrt (eps))
 && abs (s - [3, 0; 0, 1] < sqrt (eps))
 && abs (v - [-x, x; -x, -x] < sqrt (eps)))