I have 2 Matrixes A and B both of size (n,2)
I want as in Matlab with using vecnorm(A-B,2,2), to get the norm of each row in a matrix (n*1)
A = [ 1 2 ; 3 4]
B = [3 4 ; 2 1]
A - B = [-2 -2 ; -1 -3]
I want to get This:
How can I represent this in CVX?
please guide me
Thanks very much
excuse me, another question:
are these statements the same in CVX?
isequal(R >= eta , ones (K,1));
R >= eta
I don’t understand your question.
isequal can’t be applied to CVX variables or expressions. If you want to know whether two constraitnts are equivalent, show the variable declarations and state the two constraints.