I have make a code for block Kronecker product when both A and B have even dimension now myquestion (I want to make a code when A and B have are not even and also A is square and B is rectangular and vice versa)

2 次查看(过去 30 天)
function y=Kronb4(A,B) %n is the order of the matrix R y=[kron(A,B(1:2,1:2)) kron(A,B(1:2,3:4)) ; kron(A,B(3:4,1:2)) kron(A,B(3:4,3:4))] ;

采纳的回答

Christine Tobler
Christine Tobler 2018-2-12
I'm not sure how to do this, but take a look at the implementation of kron in MATLAB:
edit kron.m
You'll see that it uses reshape and multiplication with implicit expansion to compute kron. Possibly, you can also get the block Kronecker product if you reshape the matrices in a different way?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by