in reply to Re: Arrgghh! Perl and Matlab (round 2)
in thread Arrgghh! Perl and Matlab (round 2)

There's an even easier way:

$Sqs = stretcher($S);
see PDL::MatrixOps.