kron of two 3 dimensional arrays along third dimension

조회 수: 2 (최근 30일)
Bikramjit Singh
Bikramjit Singh 2013년 4월 23일
댓글: Antonio Mei 2017년 1월 29일
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
Bikramjit Singh
Bikramjit Singh 2013년 4월 23일
I'll be having many such arrays corresponding to the base station (access points), we try to make decision which combination is good by seeing the maximum value in case co-ordination capacity (when all such arrays are added) or in case of selfish network (when individual max values of arrays coincide)
The above procedure meant for generating data (combinations)!
Antonio Mei
Antonio Mei 2017년 1월 29일
Bikramjit, were you able to find a solution to this? Thanks.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by