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)

3 ビュー (過去 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 Center および File ExchangeSignal Attributes and Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by