A truss is a structure in which members are arranged in such a way that they are subjected to axial loads only. The joints in trusses are condidered pinned. Plane trusses, where all members are asummed to be in x-y plane, are considered in this MATLAB code.

Example:

Consider a simple six-bar pin-jointed structure shown below. All members have the same cross-sectional area and are of same material, E = 200 and A = 0.001; The load P = 20 and acts at an angle of 30 degrees.

each node has two degree of freedom and thus there are a total of ten degrees of freedom.

It is solved using this MATLAB code and the results are as follows:

MATLAB file: Continue reading