Você está na página 1de 3

>> asa144_test

29-Jan-2008 08:29:50
ASA144_TEST
MATLAB version
Test the ASA144 routines.
TEST01
RCONT constructs a random matrix with
given row and column sums.
The rowsum vector:
1
2
3
4
5

3
2
2
1
1

The columnsum vector:


1
2
3
4
5

2
2
2
2
1

The rowcolsum matrix:


Col:
Row

1
1
0
1
0
0

2
0
0
1
1
0

3
0
1
0
0
1

4
1
1
0
0
0

5
1
0
0
0
0

The rowcolsum matrix:


Col:
Row

1
0
1
1
0
0

2
1
1
0
0
0

3
1
0
0
0
1

4
0
0
1
1
0

5
1
0
0
0
0

The rowcolsum matrix:


Col:
Row

1
0
1
0
0
1

2
0
0
1
1
0

3
2
0
0
0
0

4
1
1
0
0
0

5
0
0
1
0
0

The rowcolsum matrix:


Col:
Row

1
1
0
0
0
1

2
1
1
0
0
0

3
1
0
1
0
0

4
0
0
1
1
0

5
0
1
0
0
0

The rowcolsum matrix:


Col:
Row

1
2
0
0
0
0

2
0
0
1
1
0

3
0
1
1
0
0

4
1
1
0
0
0

5
0
0
0
0
1

The rowcolsum matrix:


Col:
Row

1
1
0
1
0
0

2
1
1
0
0
0

3
0
1
0
0
1

4
0
0
1
1
0

5
1
0
0
0
0

The rowcolsum matrix:


Col:
Row

1
0
1
1
0
0

2
0
0
1
1
0

3
1
0
0
0
1

4
1
1
0
0
0

5
1
0
0
0
0

The rowcolsum matrix:


Col:
Row

1
0
1
0
0
1

2
1
1
0
0
0

3
2
0
0
0
0

4
0
0
1
1
0

5
0
0
1
0
0

The rowcolsum matrix:


Col:
Row

1
0
0
0
1

0
0
1
1
0

1
0
1
0
0

1
1
0
0
0

0
1
0
0
0

The rowcolsum matrix:


Col:
Row

1
2
0
0
0
0

2
1
1
0
0
0

3
0
1
1
0
0

ASA144_TEST
Normal end of execution.
29-Jan-2008 08:29:50
>>

4
0
0
1
1
0

5
0
0
0
0
1

Você também pode gostar