Login
Remember
Register
Ask a Question
create matrix 2 * 2 with value ranging from 1 to 4
+1
vote
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
create matrix 2 * 2 with value ranging from 1 to 4
numpy-matrix
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 8, 2021
by
rajeshsharma
create matrix 2 * 2 with value ranging from 1 to 4
arr = np.arange(1,5).reshape(2,2)
print(arr)
...