in reply to matlab to perl
use PDL::NiceSlice; #something......... recA = $U(:,1:$ns)*$S(1:$ns,1:$ns)*$Vt(1:$ns,:); [download]