When the main m file (script) is executed around 5 files are loaded and values are assigned to variables, four user defined functions are also called and output is plotted in the graph inside the main file. How can these all be represented in Simulink model with a main script code?