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)
for example
A = [ 1 2 ; 3 4]
B = [3 4 ; 2 1]
A - B = [-2 -2 ; -1 -3]
I want to get This:
ans =
2.8284
3.1623
How can I represent this in CVX?
please guide me
Thanks very much