How to combine two local matrices into one global matrix help.

Hello I am having a hard time finding a code to combine two local matrices.
I found this online but it does not seem to be working.
The example is a bar under axial force.
Element one is node 1 to 3, Element 2 is 3 to 5.

Print["Global Stiffness Matric"]
Ksys=zero( 5,5);
Ksys( 1,3)=Ksys( 1,3)+K1;
Ksys( 3,5)=Ksys( 3,5)+K2; 
Ksys//MartixForm

Thank you!

Assign-3_CIVE665.docx (50.3 KB)
JN0FPh-Assignment 3 Question 2 NV.nb.pdf (45.6 KB)

Hey, Nicole,
Is it what you wanted?