Hi Arturo, Did you make sure that you added the brackets in the dog statements?
This does seem to work for me: pdl> $a = zeroes(10,50) pdl> $b = ones(10,100) pdl> p cat ((dog $a), (dog $b))->info() PDL: Double D [10,150] Anyway, you've found a solution that works for you! Cheers, Matt >>> 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 > -- Matthew Kenworthy / Assistant Professor / Leiden Observatory Niels Bohrweg 2 (#463) / P.O. Box 9513 / 2300 RA Leiden / NL _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
