On Nov 1, 7:20 am, Yotam Avital <[email protected]> wrote:
> This is not what I want.
>
> sage: !cat file1
> 1 3
> 2 0
> 3 10
> sage: !cat file2
> 1 29
> 2 21
> 3 -19
> sage: a=numpy.loadtxt('file1')
> sage: b=numpy.loadtxt('file2')
>
> sage: out = a <some magic function> b
>
> sage: out
> array([[ 1., 3. ,29],
> [ 2., 0. ,21],
> [ 3., 10. ,-19]])
>
> On Sun, Nov 1, 2009 at 3:02 AM, Jason Grout
> <[email protected]>wrote:
>
>
>
You mean like this?
sage: !cat file1 file2
1 3
2 0
3 10
1 29
2 21
3 -19
sage: !cat file1 file2 > file3
sage: a=numpy.loadtxt('file3')
sage: print a
[[ 1. 3.]
[ 2. 0.]
[ 3. 10.]
[ 1. 29.]
[ 2. 21.]
[ 3. -19.]]
Cheers ~ Adam
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---