MATLAB: Sequential Simulations

simulink

Hello,
I am new to MatLab and Simulink and have a design-question. In my project I have to execute several Simulink-simulations after each other and carry together the results. More specificly, I will look at several rides of a device. It is important, that the whole thing can have a comfortable GUI and doesn't get too complex, so other people can get into it quickly.
My question is: How do I design this best and unriskyest (so I don't waste time on insufficient implementations)? Currently I see two options: Write it as a MatLab-Script or model it with StateFlow as a state graph (but there I have absolutely NO IDEA how hard that would be or if that would like nice in the end). But maybe there is also other possibilities.
Can somebody please help me with that?
Greetings,
Andy

Best Answer

Here is my experience in case it is helpful. I have a parameter study with multiple Simulink runs which I execute it from within a Matlab script. For each run, I generate parameters in the workplace, run the simulation, extract desired simulation results, then save a mat file with the results. There is additional scripting at the end to generate comparison plots. As a Simulink beginner who is comfortable with Matlab, I took 1-2 weeks to get the script working well. This is not including time to set up and debug the Simulink model. My colleague, also a Simulink beginner, took about 3 days to get a GUI working on another Simulink application. Hope these time estimates are helpful for planning your approach.