How i can use cell variable?


(Elham Banapoor) #1

hi
I need to use cell variable in my optimization for example i use
sigmax = sdpvar(repmat (nx,1,N+1),repmat(nx,1,N+1)) in yalmip but i dont know how i can reformulated in cvx
I would appreciate any assistance .


(Mark L. Stone) #2

Will multideimensional arrays do what you want? Read mcg’s answer at Cvx sdp mode and cell arrays

Also read https://www.mathworks.com/matlabcentral/answers/383562-using-cell-arrays-as-a-variable-in-cvx

If YALMIP does what you want, perhaps you should stay with that rather than trying to convert to CVX.