MATLAB: Norm square

How to implement equation:
CRE=||Pu||^2
P is a matrix

Best Answer

Is Pu a vector resulting from multiplying a vector by a matrix
P = randn(2,2);
u = randn(2,1);
norm(P*u,2)