Added code generation for matlab, flipped to horizontal.