How can I replicate this code in python... I'm not very familiar with matrices and am trying to learn more.
https://www.mathworks.com/matlabcentral/answers/76990-convert-xy-coordinates-to-matrix
out(sub2ind(size(out),x,y)) = z;
How can I replicate this code in python... I'm not very familiar with matrices and am trying to learn more.
https://www.mathworks.com/matlabcentral/answers/76990-convert-xy-coordinates-to-matrix
out(sub2ind(size(out),x,y)) = z;