covariance example

Not sure if you will need this or not, but here is a matlab function that takes a length l vector and paritions it into an n by m matrix, where l = n x m. This function should work under scilab too, but I haven't tried it.