A set of MATLAB practice codes for Structural Analysis II in Engineering majors
Updated 19 Sep 2021


A set of MATLAB sample codes to help engineering students (e.g. ME, CEE, AE, etc.), to learn and internalize numerical techniques for anaylizing mechanical structures, including trusses, beams, frames, etc.

Developed by Shahrokh Shahi
Georgia Institute of Technology
College of Computing and College of Engineering


This repository is part of a set of engineering-related codes, where you can find more details in this blog post, and the teaching section of my personal website.

More specifically, this package includes the following items:

  1. A single-file script for analyzing beams and planar frames.
  2. A single-file script for analyzing truss structures.
  3. A small program for modeling and analyzing the famous conical bar under self-weight problem, where a simple GUI has also been created to facilitate the modeling and studying results. In all cases, the instructions for generating input files and some sample input files are provided.


Special thanks to the course instructor, Prof. Rafi Muhanna at Georgia Tech for providing the advice and insights towards designing and preparation of the materials.

Cite As

shahrokh shahi (2024). Structural_Analysis_Sample_Codes (, GitHub. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!

Bar under Self-Weight load with GUI

Planar Frame

Planar Truss

Version Published Release Notes

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.