alk = x'*A*x; %A and B are positive semidefinite matrices
hrk = s'*B*s;
x <= 1/n
But unfortunately, this code produces the following error
Undefined function or variable 'x'.
Error in twofuncsvm (line 19)
When I change the variable name to some other thing say u, for the first time the error is about other variables like z or w and after some times again the error is about u .
What is the problem, what I’m doing wrong?
Any help is appreciated. I don’t know what to do.
Hi. No I don’t have any file with that name. Even I change variable name to some other thing say ‘alp’, after some times I got the same error. And no, my matlab version is 220.127.116.112 (R2014a). This is not the first time I use cvx with this computer. I wonder what to do?
I must be honest I’m stumped. Makes no sense to me that right after declaring the variables they no longer exist. Without access to your computer there’s no way I can debug it. I’d suggest completely removing and reinstalling CVX but that seems weak.