Projects

Directions for the Projects

Staple all sheets of your projects together. Be sure to include all of the answers to the questions - think of these projects as reports where you need to analyze the given situation. If you want to include your matlab code, publish it. If you don't print it off to submit, be sure to publish the code to a pdf file. You can then include the entire project/report in the published file.

Click here to see how to publish in Matlab.

Getting the Projects

To get the projects either follow this link, and then follow the path: student resources / Matlab projects OR use the direct links to each project given below. The projects will require you to use certain .m files. They can be found at the above link.

Learning Matlab commands

Your author has some resources on the textbook's webpage that may help in learning new or useful matlab commands. You could think of these resources as little projects (or interactive tutorials) which discuss around 3 to 5 matlab commands each. In the file, you'll see syntax on how to type the code as well as a few examples.

To find these files, follow the link above. Choose student resources. Then select Applications by Chapter in the menu on the left. You should see a chart divided up by chapter. The files labeled Applications are projects just like the ones assigned in our class. In fact, our projects were chosen from his list. The additional resources mentioned are the files labeled MATLAB Program.

Using programs other than Matlab

You do not have to use Matlab to complete the projects, often a handheld calculator will suffice. However, the projects will give you code in matlab, so it will make it easier to complete the projects if you use matlab. Also, there are a number of questions that will require you to use data that is too big for a calculator to handle. Any .m file can be opened in notepad. Then you can copy the data to whatever program you chose to use. Warning: if you use a program other than Matlab, you may need to convert the data into the another/appropriate form.

If you are using mathematica, you can open any .m file; however, the notation used will be different, so the commands will need to be converted to mathematica notation. I converted the .m file for project 2 for you. It can be found here along with some details on how to convert matlab code over to mathematica code.

due date project .m files plaintext version of .m files topic book section last day to submit
Jan 21 Project 1 n/a n/a An Introduction to Matlab tutorial n/a
Feb 18 Project 2 interpoly.m interpoly Interpolating Polynomials sect 1.2 n/a
Feb 25 Project 3 dominance.m dominance Dominance Matrices sect 2.1 n/a
Mar 25 Project 4 leontief.m leontief The Leontif Input-Output Model sect 2.6 n/a
Apr 8 Project 5 hillcipher.m hillcipher Hill Substitution Ciphers sect 4.1 n/a
Apr 22 Project 6 eccode.m eccode Error-Detecting and Error-Correcting Codes sect 4.6 n/a
May 6 Project 7 fibonacci.m fibonacci The Fibonacci Sequence and Generalizations sect 5.3 n/a
May 6 Project 8 traffic.m traffic Network Flow Problems sect 1.6 n/a

Accessing Matlab

Fretwell 319
A linux lab open MTWR 8am-8pm and F 8am-5pm. All machines have matlab installed on them.
Other labs oncampus with Matlab:
Woodward 120, ...
A Mosaic Account
This is an option only if your major is in the College of Engineering.
Purchasing Matlab
The student version costs around $99, and the best places I've seen to buy it are from SIAM or JourneyEd.
Downloading Octave (ie: free version of Matlab)
You find it by googling Octave (or GNU Octave). Supposedly there is a new version coming out soon; however, right now you will need both Octave and some sort of editor like emacs.

LU Factorization using Matlab

If you want to use matlab for LU factorization, download the function LUfactorization.m To use this function:

To see how the function works, open the file and read the comments.