Some MATLAB and C++ codes I wrote at some point that may be of some use..

MATLAB :

Nonlinear Dynamics:

showmethefront.m is a Matlab program that solves ZFK (Zel'dovich-Frank-Kamenetsky) and FKPP(Fisher-Kolmogorov-Petrovski-Piskunov) equations interactively (in the sense that you draw the initial conditions with the mouse).

Custom Commands:

These are some useful commands to place in your Matlab path that perform some actions that are needed frequently:

normfig.m : makes figure better looking when printed by increasing linewidths etc. ..
cutv.m : u = cutv(v) returns a vector u which is v(1:length(u)-1) so that you do not need to write this over and over again when plotting the derivative of a function.
C++ :

I am new at C++ and I wanted to put some basic programs which may make things easier for beginners like me.

mtxmult.cc : A program that creates a matrix class to multiply two matrices. It shows how to allocate memory dynamically as the dimensons of the matrices are not determined at the time of compilation. It employs the "naive" formula    (the first thing that comes to mind:                                       C[i][j]=sum_{k}(A[i][k]B[k][j]) ) for matrix multiplication. It shows how multidimensional arrays can be represented by one dimensional arrays + a map.

mtxmulttime.cc : A program that compares the time it takes to multiply two matrices by using objects (of the matrix class above) and  by not using objects.. it uses the same methods as in mtxmult.cc. These two programs show that the "naive" method for matrix multiplication (that involves three for loops) is very inefficient and not plausable when the matrices are of dimension of the order 1000. Compare this to the time it takes during matrix multiplication in Matlab. I wonder what algorithm those guys are using, it seems amazingly efficient.