Dear all,
I have a problem with the 3D iteration. Firstly, I construct an initial jxk matrix. Then, I try to iterate the matrix and to build up a nested matrix. I don't understand where the problem is and I am wondering if there is a better way to program this idea. I have attached the file. Thank you very much for your kind help!!