MATLAB Answers

Matrix Dimension not the same

조회 수: 23(최근 30일)
Steve Sugiat
Steve Sugiat 14 Dec 2020
답변: Raunak Gupta 18 Dec 2020
A= eye(3,3)
B= eye(6,6)
kron(A,A) resulting in 9x9 identity matrix, how to change the dimension of 9x9 matrix into 6x6 matrix using voight system in matlab.


Raunak Gupta
Raunak Gupta 18 Dec 2020
kron function returns kronecker tensor product of two matrices therefore size of resulting matrix will be [size(A,1)*size(B,1) size(A,2)*size(B,2)] for two matrices A and B. So, you may check if only a sub part of the matrix is required or B matrix can be different.


Community Treasure Hunt

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

Start Hunting!

Translated by