% Truss 06 % A determinate truss with 4 nodes and 4 bars % Daniel D. Warner % January 28, 2008 % There are 4 nodes % The matrix of x,y coordinates for each node (in feet) nodes = [0.0 0.0 3.0 0.0 0.0 2.0 3.0 2.0] % There are 4 bars % The matrix of nodes that are connected by each bar bars = [1 3 2 3 2 4 3 4] % The vector of Hooke's (stiffness) constants for each bar hooke = [ 2.0e3 2.0e3 2.0e3 2.0e3] % Nodes 1 and 2 are fixed both horizontally and vertically % Nodes 3 and 4 are free fixed = [1 1 1 1 0 0 0 0] % Specify the load load = [ 0 0 0 0 5 -50 0 -100]