| MatArray Toolbox | Search  Help Desk |
| table2grid | Examples See Also |
Syntax
res = table2grid(data, shape)
Description
data is a vector with the values for each spot.
shape gives the physical layout of the slide, in
the form [ Rows Columns MetaRows MetaColumns ].
The resulting matrix res contains the spots
arranged in a way similar to the one on the slide.
Examples
M = 1:24;
res = table2grid(M,[3 2 2 2])
res =
1 2 7 8
3 4 9 10
5 6 11 12
13 14 19 20
15 16 21 22
17 18 23 24
M2 = grid2table(res,[3 2 2 2])'
M2 =
Columns 1 through 12
1 2 3 4 5 6 7 8 9 10 11 12
Columns 13 through 24
13 14 15 16 17 18 19 20 21 22 23 24
See Also
grid2table,
normgeo