norm square
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Janet
am 23 Feb. 2012
Kommentiert: Jaromir Kabelac
am 3 Mär. 2020
How to implement equation:
CRE=||Pu||^2
P is a matrix
0 Kommentare
Akzeptierte Antwort
Wayne King
am 23 Feb. 2012
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 Kommentar
Jaromir Kabelac
am 3 Mär. 2020
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
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/274839/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/274840/image.png)
What you probably want is the square of the norm, hence
norm(x)^2
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!