Write the MATLAB code for this question.
For the plane truss structure shown in Figure P3-20, determine the displacement of node 2 using the stiffness method. Also, determine the stress in element 1. Let A = 5 in^2, E = 1106 psi, and L = 100 in.
L = 10 kip
Figure P3-20