This is the code generated from models in Matlab