0

I recently try to transfer some function from matlab to python. A function in matlab called "accumarray", accumarray(3d_array(10*10*10),1), the output is also 101010 3d array.

But when I try to do the same in "accum" function in python, I can not write directly "1" as a vals in the "accum(3d_array(101010), vals)", do you know how can I make this function work, and output also the 3D array?

Thank you very much for your time!

yuan
  • 1
  • 2

0 Answers0