I'm trying to get a Matlab implementation of the inversionless Berlekamp-Massey algorithm and I'm having a surprising devil of a time getting it to work properly. I had an implementation working for a simple (7,3) code but it failed to work for a larger (255,239) code. Can anyone point me to a good matlab implementation of this? Or at least a reliable spec on the algorithm?