Module 4: Modular Programming/Extend

Extending your learning through the complete specification of your second programming assignment.

DUE: March 2

Write a MATLAB m-file script (runtruss.m to solve the pin-joint truss problem
  1. Ascii picture of the truss
  2. The matrix A and right hand side b
  3. Review Statement of problem from "Apply" section of this module
by re-using a function provided by someone else (getinput.m), designing and writing a function of your own (setup.m) and putting the entire solution process together by the sequence of MATLAB commands in runtruss.m

Your two m-files should be well commented to provide the documentation needed at later times (or when sharing with someone else) on what the programs accomplish. You should test you solutions extensive to be sure you can respond to invalid and valid data. When you are satisfied with your solution, copy the files to your turnin directory in your class account:

cp runtruss.m ~/turnin
cp setup.m ~/turnin

and then send email to the instructor (stewart@rohan.sdsu.edu) that your solutions are ready to be checked.

Page author: Dr. Kris Stewart
URL: http://www.stewart.cs.sdsu.edu/cs205/module4/Extend.html
Last updated: Feb. 18, 1998