Skip to content
Advertisement

Appending matrix A with matrix B

Say I have two matrices A and B. For example,

JavaScript

Is there a way to append A and B?

Advertisement

Answer

It sounds to me like you’re looking for np.hstack:

JavaScript

np.vstack will work if you want to stack them downward:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement