Subscript indices must either be real positive integers or logicals.
Error in cvx_extract (line 344)
*** tmpv = sum(dbcA(temp,:)~=0,2)==1;***
this is what it keeps displaying whenever I run the program, I have very little knowledge on cvx. Please how do I correct this line; tmpv = sum(dbcA(temp,:)~=0,2)==1;
Thank you in advance
Perhaps you can show us your program, preferably with input data?
Note that CVX does not allow CVX variables or expressions to be used as indices of any variables (whether CVX or MATLAB variables). If you feel the need to do so, it may be that the only way to achieve the desired effect is to use the MIDCP capability of CVX, perhaps with somewhat tricky programming.