ENGR 311: INTERMEDIATE MECHANICS

MATLAB PROGRAMMING
(Last Update: 1-25-99)


Instructor: Chris L. Mullen
Office: 202 Carrier Hall / Phone: 232-5370
Email: cvchris@olemiss.edu


Select Matlab program by m-file name given below:

trus1.m
trus2.m
trus3.m


You may access Matlab from the PC's running Windows in Room 101 Carrier (School of Engineering CAD Room).

You may access Matlab remotely from the workstation "sweetgum.mcsr.olemiss.edu" running Unix through a telnet session . If your terminal is capable of X-windows emulation, e.g. using Xwin32 software available in the Weir Hall Microcomputer Lab, you will get full screen graphics. If not, you may still work in VT100 mode (command line input/output only).

A text file containing Matlab commands can be created with a text editor. When given the extension "*.m", the commands may be "run" or executed by simply typing the name of the prefix.

I suggest that you "download" to your own workspace the text files below that are highlighted with hypertext by using the "Save As" bar of the "File" pull-down menu. Then try generating the output files using the given "m-file" as well as through an interactive session.


In class on Friday 1/22, the solution for a simple 3-jointed, two-member arch planar truss was obtained using the method of joints. An input m-file, trus1.m may be used to solve the same problem. The diary file of the solution is given in the text file, trus1.out .


Also in class on Friday 1/22, the solution for a simple 4-jointed, 6-member tripod space truss was obtained using the method of joints including the calculation of the reaction forces at the base. An input m-file, trus2.m, may be used to solve the same problem. The diary file of the solution is given in the text file, trus2.out.


In class on Monday 1/25, the solution for a simple 5-jointed, 6-member cantilever planar truss was obtained using the method of sections. An input m-file, trus3.m,may be used to solve the same problem using the method of joints. The diary file of the solution is given in the text file, trus3.out. Compare results using the method of sections with those for the method of joints.