Matrix Dimension not the same

1 次查看(过去 30 天)
Steve
Steve 2020-12-14
回答: Raunak Gupta 2020-12-18
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.
Cep=k*kron(A,A)+2*(B-1/3*(kron(A,A)))

回答(1 个)

Raunak Gupta
Raunak Gupta 2020-12-18
Hi,
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.

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by