norm square
45 次查看(过去 30 天)
显示 更早的评论
How to implement equation:
CRE=||Pu||^2
P is a matrix
0 个评论
采纳的回答
Wayne King
2012-2-23
Is Pu a vector resulting from multiplying a vector by a matrix
P = randn(2,2);
u = randn(2,1);
norm(P*u,2)
1 个评论
Jaromir Kabelac
2020-3-3
This is not true.
norm(x, 2)
is the same as
norm(x)
and calculates the 2-norm (or Euclidian norm) of x, which could be denoted as , or usually just as .
What you probably want is the square of the norm, hence
norm(x)^2
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!