Aug-02-2019, 07:14 PM
Dear everybody
I am very expert with MATLAB programming but I am new with Python.
Very simple matrix assignment which is worked well in MATLAB, does not work in Python.
P.S. Please don't change the dimension of x and y. I need both of them 3D.
I am very expert with MATLAB programming but I am new with Python.
Very simple matrix assignment which is worked well in MATLAB, does not work in Python.
import numpy as np x = np.zeros([100,2,20]) y = np.random.binomial(1,0.5,size=[100,1,20]) x[:,0,:] = yPlease help.
P.S. Please don't change the dimension of x and y. I need both of them 3D.