Hello, I'd like how the easier way to assemble 2 matrices, for example, I have the following matrices:
k1 = [120 -120;-120 120]
k = zeros(5,5)
so I want to assemble this pattern:
K = [120 0 -120 0 0; 0 0 0 0 0;-120 0 120 0 0; 0 0 0 0 0; 0 0 0 0 0]
I thank you.
Best Answer