I have a speed profile of a vehicle which consist of 100 points and I want to add this speed profile as a measured disturbance in my nonlinear mpc system. Is there any way to do it in MatLab by using mpc toolbox?
You can use stair generator block to provide time dependent sequential values. Or you can use from workspace block to feed data from matlab workspace, where you can setup your desired sampling time also.