norm square
40 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How to implement equation:
CRE=||Pu||^2
P is a matrix
0 Commenti
Risposta accettata
Wayne King
il 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 Commento
Jaromir Kabelac
il 3 Mar 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
.
.What you probably want is the square of the norm, hence
norm(x)^2
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!