採用された回答

Wayne King
Wayne King 2012 年 2 月 23 日

1 投票

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
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 件)

Jonathan Sullivan
Jonathan Sullivan 2012 年 2 月 23 日

1 投票

Have you tried
CRE = norm(P)^2;
help norm
doc norm

カテゴリ

タグ

タグが未入力です。

質問済み:

2012 年 2 月 23 日

コメント済み:

2020 年 3 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by