Matlab
These programs were developed using Matlab 7.0. The programs are released under the terms of the GNU General Public License.
Continuous Beam Analysis – General
This is a general beam analysis program. It uses the stiffness method to determine the rotations at each support. These are then used to determine the member end forces. Exact expressions are then used to determine the distribution of shear, moment, rotation and deflection along each member. The program features:
- Multiple load types: point load; uniformly distributed load; patch load, and; moment load;
- Spring supports, both vertical and rotational, enabling it to be used as part of a subframe analysis;
- Results are output at 100 positions along each span, enable accurate deflection estimation.
Better yet, the program forms the analysis engine for two auxiliary programs, extending its range of applicability significantly.
Note that Section 15 of the GNU GPL, Disclaimer of Warranty, and Section 16, Limitation of Liability, are particularly pertinent to this engineering design program.

CBA showing a subframe analysis
Continuous Beam Analysis – Envelope
This is an extension to the general beam analysis program. It automatically patterns applied loading to obtain envelopes of maximum and minimum load effects. The user can specify the maximum and minimum dead and live load factors.
Note that the files for CBA-Env must be put in the same folder as CBA.
Note that Section 15 of the GNU GPL, Disclaimer of Warranty, and Section 16, Limitation of Liability, are particularly pertinent to this engineering design program.

CBA-Env showing 4-span beam analysis
Continuous Beam Analysis – Bridge
This is another extension to the general beam analysis program. It allows the user to pass the following forms of load across a bridge:
- knife-edge loads;
- HB vehicle;
- Special convoy vehicle.
In each case it outputs:
- moment and shear envelopes;
- maximum and minimum moment against position of first axle;
- bending moment diagrams when maximum and minimum moments occurred;
- a report of maximum and minimum load effects for any chosen point of interest.
This form of input and output allow the bridge designer to determine the maximum design load effects, as well as coincident effects, for the critical position of the vehicle. This is something that is only usually approximated.
Note this add-on requires the CBA-Env add-on to be available and the files are to be put in the same folder as CBA and CBA-Env.
Note that Section 15 of the GNU GPL, Disclaimer of Warranty, and Section 16, Limitation of Liability, are particularly pertinent to this engineering design program.

CBA Bridge showing typical output
Section Properties Calculator
This is a short but really useful script that calculates the section properties for an arbitrary shape with holes.
Prestressed Concrete Design
A collection of scripts for prestressed concrete calculations. Features include:
- Magnel diagrams;
- Stress checks at critical sections;
- Minimum section modulus calculations;
- Cable zone calculations.
When integrated with CBA and SecProp above, this is a powerful suite for the design and analysis of prestressed concrete beams.

PSC showing ongoing design of continuous prestressed concrete beam
Comments
Comment from Colin
Time: 23 January, 2009, 01:09
You’re right: that is a very serious problem. I suggest studying some books to find the equations that describe the stress resultants you’re looking for. Then, use a computer program like MS Excel or Matlab to plot the equations. You may have to study some other books to learn how to do that too though. However, I’m sure all this reading won’t put you off. Best of Luck!
Comment from ugo
Time: 2 February, 2009, 15:58
HMD i have a program that can do just that for u, but as my site is still under construction now, u’ll v to contact me via my e-mail, ugoelumeze@whoever.com
i’ll be glad to hear from u.
Comment from moon
Time: 2 June, 2009, 08:58
dear sir,
thank u for ur sources, I think they are the exact things I need.
but since I am not good at Matlab, I don`t know how to run the function CBA.
I think I have set path to the unziped file, but still failed to run it.
could you send me an example to help me understanding how to use ur sources?
for example, consider a cantilever beam (or simple supported beam) subjected to a force P at the tip.
how could I input the paraments?
sorry for my rude require, I really need ur help.
BTW, my e-mail: moon555sss@hotmail.com
Comment from pierrot
Time: 11 September, 2009, 17:09
dear mr. caprani,
your continuous beam application is a real nice piece of work, i like it very much. that made me translating it into c++. today i put it into sourceforge (http://sourceforge.net/projects/cbeam/) to share with others, i hope you dont mind.
greetings from germany, pierrot.
Comment from Admin
Time: 11 September, 2009, 23:54
Pierrot,
I don’t mind at all – I think it is a very nice complement, so thank you. I’m glad that someone has used it and has liked it. Well done for putting the work in too!
I’ve had a look at your code and it is very clean and clear – I’ve learned a lot from it, so thank you. Let’s hope other people find it useful too.
Colin
Comment from Ali El-baden
Time: 2 January, 2010, 22:15
Dear Prof colin
I find your web site very useful, and I wish that you publish your structural analysis notes in a kind of a book , best wishes and happy new year.
Greating from Tripoli-Libya
Comment from eng-zarzour
Time: 19 March, 2010, 08:43
I’m now developing a new program about Prestressed Concrete for my Master degree , and i really enjoy to learn some concepts from your program , thanks a lot >>>> , for help about Matlab : i recommend this e-book “MATLAB Codes for Finite Element Analysis.pdf” for civil engineers ,for contact my email : spade-hero@hotmail.com
Comment from jock
Time: 30 March, 2010, 16:34
can you give me some example that use those *.m file. I’m waitting for u!
Comment from jock
Time: 30 March, 2010, 17:03
Sorry to trouble u. I’ve got the ex. thank’s a lot
Comment from Raim
Time: 26 May, 2010, 03:50
Hi, may I know if the CBA function can be used for a beam which has one support only at the end? I have found the function very useful for beams with support at either end, and kudos for that! But please enlighten me on this issue.
Thank you
Comment from Admin
Time: 26 May, 2010, 13:46
Raim,
Once you have specified enough boundary conditions to the make the beam stable, it should work fine. If it is a support at only one end then it must be a fixed support (or at least have sufficient spring support stiffnesses to prevent large rigid body motions). Make sure both translation and rotation are prevented as a first step.
Colin
Comment from wahyoe
Time: 20 June, 2010, 08:37
how to use make source

Comment from HMD
Time: 23 January, 2009, 00:45
Hi.
Thanks for your useful site.
i have a serious problem and i think you can help me.actually i need a program which can plot shearing stress and bending moment diagram for a beam.this beam can be under a point load or uniformly distributed load(rectangular and triangular)
i need this program as soon as possible.please help me if you can.
with the best thanks.