What is the easiest method to implement the GPC in Matlab?
After the development of the GPC algorithm I got the equation on the image being U(t) the control signal and y(t) the output signal and w(t) the reference signal which is known in advance as a sine wave signal, how can i implement this in Matlab? can i use a sine wave generator bloc and discretize it using a zoh bloc than i send it for a Matlab function which includes include the aforementioned equation.