Controller K giving Inner Matrix dimension error for LPV( when i use the command lpvsyn)

3 views (last 30 days)
Hi, I have been trying to form an LPV controller for a typical car steering. I have formed my plftss for the car dynamics, I have my weighting function and also my actuator. The problem arises after I have formed the system with sysic and trying to get a controller K using lpvsyn when I get the following error. Please help me understand and solve the issue.
Error using * Inner matrix dimensions must agree.
Error in klpv (line 115) DK = V12*diag(1./S12d(1:r12))*DK*diag(1./S21d(1:r21))*U21';
Error in plftss/lpvsyn (line 403) Kopt = klpv(M,nmeas,ncont,nri,Ropt,Sopt,J3opt,L3opt,gamopt);
Error in plftss/lpvsyn (line 395) [Kopt,gamopt,Info2] = lpvsyn(P,nmeas,ncont,opt2);
Error in naman_LPV_test1_9_2_2017 (line 68) [K,Gamma,info] = lpvsyn(G,nmeas,ncont)
Thanks Naman Vaidya

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!