Matrix Analysis of Two Dimensional Bar Structures MABS2D

This program solves bar structures of constant area through matrix analysis of structures.


Updated Sat, 21 Nov 2009 14:21:48 +0000

View License

Input data is the MS Excel file, where the table of nodes, table of elements, nodal external loads vector and boundary conditions are stored.
After running the mabs2d.m file on the Command Window, the program calculates the stiffness matrix in local coordinates kiL (element i). Once the transformation matrix associated to the element is obtained, the stiffness matrix in global coordinates kiG is also calculated. The table of connectivity is automatically generated for the assembly process and then computes the complete stiffness matrix of the structure. Boundary conditions are introduced on the Excel sheet in order to remove the singularity of the stiffness matrix. After solving the matrix system, the nodal displacements vector u and the nodal loads vector P0 (external loads and reactions) are calculated.
Finally, the program returns to the element formulation by transforming the global displacements into local ones to obtain the bar stresses sigmai of the element i and design the each member of the structure.
A plot of the deformed and non deformed structure in static equilibrium is also shown.
This program only considers concentrated loads on the nodes. In case there be distributed loads or thermal loads, they must be calculated separately and then included into the nodal external loads vector.
Flexion and shear effects are not considered. All the elements satisfy the hypothesis of the Finite Element Method (FEM).

Cite As

Marcos Cesar Ruggeri (2023). Matrix Analysis of Two Dimensional Bar Structures MABS2D (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Six beam element stiffness matrix

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes

Adaptability of boundary conditions for isostatic structures included. More examples added.

Elements numeration included (v2.0)

New Screenshot

License included

Syntax improved. Instructions incorporated.