As it is mentioned in the documentation, Model.StateFcn = @(x,u,params) myStateFunction(x,u,params). However, in my case, dynamic is also a function of wind speed (which itself is a function of time). How can I access time to define the dynamic? As it is shown above, StateFcn is not a function of time, so I do not know how can I get time in the "myStateFunction" to define state derivatives.
I though about using wind speed as measured distubance input, but I do not knwo how I can change it through simulation. For example if I suppose wind speed is a sinusoidal function of time, in the "nlmpcmove" I can only define the initial value of wind speed. So my question is how I can define it at other times?