I have an algorithmic problem and I could not think how can I write in Matlab.
I have a variable S which is defined:
So I tried this code line but I know it is wrong:
for b =1:d
for y =1:d
if a ~= b
This is actually just a part of my code and this code related to CVX so I can define this variable directly as T(a,b,x,y)