Example of how to model systems with Simulink and generate the code