I have two numpy arrays with three dimensions (3 x 4 x 5) and I want to concatenate them so the result has four dimensions (3 x 4 x 5 x 2). In Matlab, this can be done with
This works for me:
c = numpy.array([a,b])
Though it would be nice if it worked your way, too.