barney75
Mechanical
- Jan 22, 2007
- 58
Hy guys,
I need an help on how to manipulate arrays in python using the module Numeric or array.
Consider the following array a
a = reshape(arange(9),(3,3))
>>> print a
[[0 1 2]
[3 4 5]
[6 7 8]]
ok, now how is it possible (any command?) to add a new row let say [9,10,11] to the array a in order to get a new matrix a as follows:
[[0 1 2]
[3 4 5]
[6 7 8]
[9 10 11]]
I need to know it in order to assemble a matrix recursively inside a loop.
Thanks bye
I need an help on how to manipulate arrays in python using the module Numeric or array.
Consider the following array a
a = reshape(arange(9),(3,3))
>>> print a
[[0 1 2]
[3 4 5]
[6 7 8]]
ok, now how is it possible (any command?) to add a new row let say [9,10,11] to the array a in order to get a new matrix a as follows:
[[0 1 2]
[3 4 5]
[6 7 8]
[9 10 11]]
I need to know it in order to assemble a matrix recursively inside a loop.
Thanks bye