Dec-09-2018, 01:20 PM
Hello,
I have this code and I want obtained all the possible values of the matrix X:
I have this code and I want obtained all the possible values of the matrix X:
import numpy as np for i in range (10): x1 = -10 +(0.1)*(i-1) print (x1) for j in range (10): x2 = -10 +(0.1)*(j-1) print (x2) X= np.array([x1, x2]) print(X)my problem I just obtain the last possibility .
Output:-10.1
-10.0
-9.9
-9.8
-9.7
-9.6
-9.5
-9.4
-9.3
-9.2
-10.1
-10.0
-9.9
-9.8
-9.7
-9.6
-9.5
-9.4
-9.3
-9.2
[-9.2 -9.2]
>>>
Please who can help me