4 views (last 30 days)

Show older comments

Anton Semechko
on 8 Jul 2018

Do

kron([a b;c d],[1;1]) + kron([1;1],[i j;k l])

Here is an example using symbolic expressions

syms a b c d i j k l

kron([a b;c d],[1;1]) + kron([1;1],[i j;k l])

ans =

[ a + i, b + j]

[ a + k, b + l]

[ c + i, d + j]

[ c + k, d + l]

vinjamoori vikas
on 17 Dec 2020

Sir, I have total six matrices each with the size 4x4. I want to add all the combinations of the columns.

That means each column of one matrix with each other column of other matrices. I should get total of 4^6 summed vectors. Please suggest me something.

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

Start Hunting!