General functions for Matlab/Simulink with focus on code generation, data processing and plot handling