How to write a 'horizontal direct product' (*~) from Gauss in Matlab?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
I am trying to write the 'horizontal direct product' (*~) from Gauss in Matlab. Anyone can help me?
E.g. Horizontal direct product z = x*~y;
x = [1 2; 3 4]; y = [5 6; 7 8];
z = [5 6 10 12; 21 24 28 32]
NB. The input matrices x and y must have the same number of rows. The result will have cols( x) * cols( y) columns.
Thanks!
댓글 수: 0
채택된 답변
추가 답변 (2개)
Walter Roberson
2012년 8월 18일
That is a subset of the output of kron(x,y)
댓글 수: 2
Walter Roberson
2012년 8월 18일
Row indexing, but I do not know what the general pattern is (I would need a few additional examples of different lengths to go on.)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!