> On Mon, 9 Apr 2012 21:35:24 +0200
> Arturo Narros <[email protected]> wrote:
>
> Hi experts ,
> 
> here is my question:
> I have 2 2d-matrix (piddles): A and B, A dim = [10, 50] and B dim =
> [10,100] I want to create a new matrix (piddle) C that join A and B
> so I can get the dimension 10x150. 
> 
> Since I did not find any function to do it easy, 
> I was doing like
> $x = pdl [ $a,$b ]
> $C = $x->clump(1,2)
> 
> but  I get a matrix 10x200 where some zeros are added to complete the
> dimension of the smaller.

PDL::glue(1, $a, $b); or $a->glue(1, $b)

This asks PDL to concatenate the piddles along dimension 1. If you want
to concatenate along dimension 0, you can use glue(0, ...) or append()

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to