# Does the global stiffness matrix size depend on the number of joints or the number of elements?

When assembling all the stiffness matrices for each element together, is the final matrix size equal to the number of joints or elements?

• The size of the matrix depends on the number of nodes. The bandwidth of each row depends on the number of connections. – stali Sep 30 '15 at 21:21
• What do you mean by joints? – nicoguaro Oct 1 '15 at 15:37
• @Stali That sounds like an answer to me -- would you care to add a bit of explanation and post it? – Christian Clason Oct 1 '15 at 15:43

$$\begin{bmatrix} * & * & 0 & 0 & 0 & * \\ * & * & * & * & 0 & * \\ 0 & * & * & * & 0 & 0 \\ 0 & * & * & * & * & * \\ 0 & 0 & 0 & * & * & * \\ * & * & 0 & * & * & * \\ \end{bmatrix}$$