I'm trying to make two 600x800 matrices (X
and Y
) that look like the following:
- X
has 0 to 600 in every row
- Y
has 800 to 0 in every column
My idea was to do something along these lines:
N = np.arange(0, 600, 1)
M = np.arange(0, 800, 1)
X = np.zeros((800, 600))
Y = np.zeros((800, 600))
And from here, put N
into every row in X
, and put M[::-1]
into every column in Y
, but I'm not sure how to go about this.