Different sample time for control loop and predictions

Please check the minimal example for MATLAB where a nonuniform discretization is used.