kron of two 3 dimensional arrays along third dimension
4 次查看(过去 30 天)
显示 更早的评论
Hello pros,
Coming to the query,
I've two 3 dimensional array say A = 9x9x120 and B = 9x9x120.
I wanted to to do apply kron along 3rd dimension, kron(A(:,:,i),B(:,:,i)), (so output is of size = 81x81x120)
Is there any straightforward function or faster way to do it! I don't wana use loops or cellfun?
As I tried with bsxfun along third dimension, it works for every other function but fails in case of kron, i mean
say for plus, bsxfun(@plus,A,B), works very well along third dimension, output with size of 9x9x120, but when i do bsxfun(@kron,A,B), it fails.
Currently I'm using cellfun to do it, which I think aint different from looping and killing my speed!
Even lil' hint is greatly appreciated! Thanks!
5 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!