Create a matrix using a certain vector in Python
Create a matrix using a certain vector in Python Question: I have this vector m = [1,0.8,0.6,0.4,0.2,0] and I have to create the following matrix in Python: I create a matrix of zeros and a double mm = np.zeros((6, 6)) for j in list(range(0,6,1)): for i in list(range(0,6,1)): ind = abs(i-j) m[j,i] = mm[ind] But, …