CPS 111
Computational Modeling for the Sciences
Spring 2007

CPS 111 Home

Resources

year month day djia

Reformatted from http://www.analyzeindices.com/dowhistory/djia-100.txt . Useful information about the DJIA can also be found in the Wikipedia. To read the data in Matlab, place the file and the function readDJIA.m in the current Matlab directory, and type

[index, year, month, day] = readDJIA;

to the Matlab prompt. This will create four column vectors of length 28,961 with the obvious meanings.

  • Zip file with the Matlab code and text file for the language model examples in the supplementary notes. For an example of text generated randomly with a much more sophisticated language model, look at the Rooter paper, which was submitted to and accepted  by the World Multiconference on Systemics, Cybernetics and Informatics (WMSCI) in July, 2005.
  • Zip file with a primitive GUI to visualize the solution to a second-order ordinary differential equation.
  • Zip file with the Matlab code for the gas simulation we discussed in class. To run, just type 'simulate' to the Matlab prompt after unzipping. This simulation only works for small numbers of particles. If you change parameter N in file simulate.m to, say, 100, not only does the simulation slow down unacceptably, but you will notice some particles leaving the box.
  • Matlab function crop.m for the wheat and barley LP problem in the notes.
  • Matlab function diesel.m for the transportation problem in the notes.
  • Zip file with the Matlab code for the soap-film (minimal surface) simulator discussed in class. Type "film" to the Matlab prompt to run the code.
  • Matlab function chi2test.m for the chi square goodness of fit test.
  • Zip file with the Matlab functions for linear regression and geometric-distance line fit.