I'm having to do some stuff with Matlab and Simulink at work and will have to use the Auto Code generating facility it has.

Does anyone here have any experience with this, or any other autogenerated code?

My efforts so far seem to give me code which is a tad difficult to read, tweak, change to actually fit your project requirements that kind of thing.