I am not sure what is the best way to manipulate simulink model data by script during run time.
I found that an easy way is to add a constant block and change the value property with a set_param (or assigning variables to parameters). But I would have prefered to use data storage and be able to...