Posts by Joao Estrella • 21 points
2 posts
-
0
votes1
answer180
viewsA: How to add an array inside a python Matrix
That is, it overwrites the previous arrays, has some way to concatenate the new array with the previous ones in Matrix? This is because you have created the while list objects. Therefore, with each…
-
2
votes2
answers2354
viewsA: Concatenate arrays using numpy module
Another way is: import numpy as np a = np.array([ [1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16] ]) b = np.array([[17, 18, 19, 20]]) out = np.concatenate((a,b.T), axis = 1)…