Shear Force Bending Moment

This function SFBM.m calculates and draw the shear force and bending moment diagrams.

https://github.com/talk2laton/Shear-Force-Bending-Moment

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Lateef Adewale Kareem (2026). Shear Force Bending Moment (https://www.mathworks.com/matlabcentral/fileexchange/51047-shear-force-bending-moment), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
5.52.0

Update length and force units dynamically

Download
5.51.0

Update unit of length dynamically

Download
5.5.0

Get maximum shear force and bending moment and where they occured.

Download
5.4.0

now you can get the maximum shear force and its location. the same applies for bending moment.

[maxshearforce, loc_maxsf] = prob.GetMaxShearForce();
[maxbendmoment, loc_maxbm] = prob.GetMaxBendMoment();

Download
5.3.5

Added resizing of images to allow concatenation possible.

Download
5.3.0

Added more examples

Download
5.2.0

Updated cantilever clamp and also allow user to add the source of the problem.

Download
5.1.0

publishing as a tool box

Download
5.0.0

Major upgrade, allowing the user to add/remove one load at a time. Problem plot is also added at a separate figure.

You can also set units for the force and length.

Download
3.7.0

Update for beam lying on the floor

Download
3.6.0

Cantilever drawing update

Download
3.5.0

Better example

Download
2.5.0

Added problem diagram. Also modified the drawing of the loads.

Download
2.4.0

fixed repeated tick problem

Download
2.4.0-10

A little modification with latex axis labelling

Download
2.4.0-9

Updated the plot function for more efficiency

Download
2.4.0-8

handles the error of parent function sharing variable with a nested function

Download
2.4.0-7

corrected commenting error

Download
2.4.0-6

Corrected a rendering problem for cases where no force is applied.

Download
2.4.0-5

Updated to ensure compatibility with Matlab R2018b.

Download
2.4.0-4

Changed the image

Download
2.4.0-3

just changed the image

Download
2.4.0-2

improved on the equation display

Download
2.4.0-1

There is a major bug. Where the special point function returns a polynomial an order higher than the polynomial describing the curve.

This has been corrected after being pointed out by David Zhang

Download
2.4.0-0

Corrected an bug in the use of arrow in line 86 of Diagram.

Download
2.3.0

added new function Round to perform the function of round(v,n) in version of matlab later than 2012b. Another function DrawArrow has been added to draw better arrows than the ones drawn by quiver function.

Download
2.2.0

corrected a scaling bug int he display.

Download
2.1.0

A bug concerning failure of the code to return the equations of bending moment and shear force from the beginning of the beam was fixed

Download
2.0.0

This file has now been updated to deal with cantilever (a system with just one support). It can also handle cases of beams lying on the floor with the reaction being just distributed load.

Equation texts is now interpreted with latex

Download
1.0.0

bugs in arrow function removed.

Download