I\'m leaving MatLab for numpy and in general it\'s going ok, but I\'m having a nightmare finding a nice pythonic way to do what would have done this in MatLab:
A
You can use np.c_[A,B,B], which gives
np.c_[A,B,B]
array([[1, 5, 5], [2, 6, 6], [3, 7, 7], [4, 8, 8]])