I have a python code like this
import numpy as np
a=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
a=np.array(a)
b = np.zeros(shape = (3,5))
x = 0;
for i in range(0, 3):
for j in range (0, 5):
b[i,j] = a[x];
x= x+1
print(b[i,:])
The output of this code is as follows:
[1. 2. 3. 4. 5.]
[ 6. 7. 8. 9. 10.]
[11. 12. 13. 14. 15.]
What is the equivalent MatLab code for this python code? I would be grateful if anybody help me with this problem.