Hi, all.

I want to express the square of Frobenius norm of a matrix in cvx. For example, when I want to slove the problem \mathop {\min }\limits_{\mathbf{A}} \;\left\| {{\mathbf{A}} - {\mathbf{B}}} \right\|_{\text{F}}^2 and I express it in matlab as

B = ones(2,2);

cvx_begin quiet

variable A(2,2)

minimize square(norm(A-B,‘fro’))

cvx_end

the cvx gives me an error as

Disciplined convex programming error:

Illegal operation: pow_abs( {convex}, {2} ).

Is there anything wrong with my expression? I really appreciate your help.