cell
Syntax
cell(obj, row, col)
Arguments
obj is a matrix/table.
row is a nonnegative integer indicating a column number.
col is a nonnegative integer indicating a row number.
Details
Return a scalar that is the value of the specified cell: obj[row, col]. The cell
function runs generally faster than obj[row, col].
Examples
$ x=(1..6).reshape(3:2);
$ x;
0 |
1 |
---|---|
1 |
4 |
2 |
5 |
3 |
6 |
$ x.cell(0,0);
1
$ x.cell(0,1);
4
$ cell(x,1,1);
5
$ cell(x,2,0);
3