How can I create 3D matrix from 2D matrix by diagonal of coulumn variables?
2 views (last 30 days)
I have a pr(17859x10957) matrix. I would like to create a 17859x17859x10957 matrix by the diagonal of every column. I tried the following solution:
This solution consumes too much physical memory. Can someone offer me a better solution?