|
Contents | Previous | Next | Subchapters |
| Syntax |
vector.blk(starting index, number)
|
| See Also | base , sequential rows or columns , and vector elements |
x = [4, 6, 8, 10]
x.blk(2, 2)
O-Matrix will respond
[ 6 , 8 ]
You can also use .blk to assign a subvector.
The result has the type that corresponds to coercion
between the type of the original vector and the subvector.
x = {1, 2, 3, 4}
x.blk(2, 3) = {5.5, 5.5, 5.5}
x
results in
{
1
5.5
5.5
5.5
}