I have a problem about Dimensions of matrices, this problem is very strange for me because dimensions of parameter and controller are the same but still, there is this error :
Error using vertcat
Dimensions of matrices being concatenated are not consistent.
Error in eliminatevariables (line 249)
involved = [involved;find(m ~= fix(m) | m < 0)];
Error in optimizer/subsref (line 122)
[self.model,keptvariables,infeasible] =
eliminatevariables(self.model,self.parameters,thisData(:));
Error in cc_mpc2 (line 275)
[sol,err] = controller{{P.x_k,alpha_tot(24*20+k:24*20+k+P.Hp-1,:),...