Some suggestions that were thrown out to me at work were to try the split function or whatever it is in Matlab, where it makes a bunch of columns starting a new column every time a number is repeated.