Many more experiments.  Have reached the point where I think I have a grammar that handles most common things in Matlab.