CE411: STRUCTURES II
MATLAB PROGRAM FILES
Instructor: Dr. Chris Mullen
(http://www.olemiss.edu/~cvchris)
(Last Update: 7-24-01)
Select Matlab program by m-file name given below:
1-: e31.m;
Rod_2el.m
2-: ie11r.m;
3-: portal.m;
4-: truss_br.m;
The discussion below provides sample output files obtained by executing
the above input files, along with a brief description of the problem solved.
Download files presented in class on date shown next to hypertext above.
All files are text files, hence the "*.txt" extension.
You may execute them on a PC containing the Matlab software (see below),
but you must first rename the files so that they have the form "filename.m"
without the quotation marks.
Double clicking the mouse on the Matlab icon initiates the Matlab session.
At the prompt, type "filename" without any extension and the
"m-file" will be executed.
f you do this successfully, you will obtain the results given in the
output file, "filename.out", which was created by first typing the command,
"diary filename.out", at the Matlab prompt before executing the
m-file.
To close the output file, type "diary off".
These steps are spelled out in the Matlab User's Guide (see below).
You may access Matlab on PC's in the Civil Engineering Computer Graphics
Lab (CECGL), Room 213 on the second floor of Carrier Hall, either the Windows
2000 version or through XWin32 login to your Sweetgum class account. A
user's guide is available in the CECGL, but an on-line manual is available
by typing "help" at the Matlab prompt.
Running on the PC's requires a student account for the CECGL obtained by
contacting the instructor.
In class, students downloaded the m-file, e31.m
,
which solves a simple 3-DOF spring-cart system using the stiffness method.
Diary files of the solutions are given in the text file, e31.out
.
These were then modified in class to solve a simple 2-element rod extension
problem. The result is given in the file, Rod_2el.m
.
In class, the m-file, ie11r.m,
was presented to solve the Illustrative Example problems 1.1 and 1.2 in
the text. The corresponding solution with SAP2000 is provided in the SAP2000
download section.
In class, the m-file, portal.m,
was presented to solve the sample portal frame problem presented in class
on 7-23-01. The corresponding solution, portal.out
compares well with the SAP2000 solution developed in class.
In class, the m-file, truss_br.m,
was presented to solve the sample braced truss problem presented in class
on 7-24-01. The corresponding solution, truss_br.out
compares well with the SAP2000 solution developed in class.