comparison scripts/linear-algebra/vec.m @ 7411:83a8781b529d

[project @ 2008-01-22 21:52:25 by jwe]
author jwe
date Tue, 22 Jan 2008 21:52:26 +0000
parents a1dbe9d80eee
children eb63fbe60fab
comparison
equal deleted inserted replaced
7410:8a3b2ccc4e11 7411:83a8781b529d
37 endif 37 endif
38 38
39 v = x(:); 39 v = x(:);
40 40
41 endfunction 41 endfunction
42
43 %!assert(vec ([1, 2; 3, 4]) == [1; 3; 2; 4] && vec ([1, 3, 2, 4]) == [1; 3; 2; 4]);
44
45 %!error vec ();
46
47 %!error vec (1, 2);
48