version 1.0.2 (298 KB) by Chad Allie
Learn how to solve beam problems using the Symbolic Math Toolbox™.


Updated 21 Jun 2022

From GitHub

View License on GitHub

Beam Bending and Deflection View Beam Bending and Deflection on File Exchange

Curriculum Module
Created with R2022a. Compatible with R2022a and later releases.


This curriculum module teaches how to solve beam bending and deflection problems analytically using the Symbolic Math Toolbox™. In the first script, you'll learn how to solve for beam support reactions and moments. In the second script, you'll solve for beam deflections using symbolic integration and create plots of the results. Throughout the module, there are short activities that introduce you to the Symbolic Math Toolbox capabilities.

The exercise solutions are available upon instructor request. If you would like to request solutions or have a question, contact the MathWorks online teaching team.

Get started with the Beam Bending and Deflection curriculum module by downloading and unzipping the repository. Then, double-click one of the live scripts to open it in MATLAB.



Learning Goals:

  • Solve for beam support reactions symbolically.
  • Solve for the moment function of a loaded beam.
  • Plot shear and moment diagrams.
  • Compute the bending stress in a loaded beam.


Learning Goals:

  • Solve boundary value problems using symbolic math.
  • Identify boundary conditions for different types of beam supports.
  • Solve for deflections of loaded beams.
  • Visualize beam deflections.

Suggested Prework

MATLAB Onramp – a free two-hour introductory tutorial that teaches the essentials of MATLAB.


MATLAB, Symbolic Math Toolbox™


The license for this module is available in the file in this GitHub repository.

Educator Resources

Copyright 2022 The MathWorks, Inc.

Cite As

Chad Allie (2022). Beam-Bending-and-Deflection (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with R2022a and later releases
Platform Compatibility
Windows macOS Linux
More Files in the  Distance Learning Community

Community Treasure Hunt

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

Start Hunting!
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.