7017
|
1 ## Copyright (C) 2006, 2007 John W. Eaton |
7016
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
|
18 |
5590
|
19 %% Automatically generated from DejaGNU files |
|
20 |
|
21 %% test/octave.test/transpose/transpose-1.m |
|
22 %!test |
|
23 %! scalar = 2; |
|
24 %! assert(scalar',2); |
|
25 |
|
26 %% test/octave.test/transpose/transpose-2.m |
|
27 %!test |
|
28 %! range = 1:4; |
|
29 %! assert(range',[1;2;3;4]); |
|
30 |
|
31 %% test/octave.test/transpose/transpose-3.m |
|
32 %!test |
|
33 %! vector = [1;2;3;4]; |
|
34 %! assert(vector',[1,2,3,4]); |
|
35 |
|
36 %% test/octave.test/transpose/transpose-4.m |
|
37 %!test |
|
38 %! matrix = [1,2;3,4]; |
|
39 %! assert(matrix',[1,3;2,4]); |
|
40 |