发布网友 发布时间:2022-04-24 04:45
共1个回答
热心网友 时间:2023-09-23 04:29
matlab中使用norm函数求向量或矩阵的范数,可以求解1范数、2范数、无穷范数和p范数
NORM(X) is the largest singular value of X, max(svd(X)).
NORM(X,2) is the same as NORM(X).
NORM(X,1) is the 1-norm of X, the largest column sum,
= max(sum(abs(X))).
NORM(X,inf) is the infinity norm of X, the largest row sum,
= max(sum(abs(X'))).
NORM(X,'fro') is the Frobenius norm, sqrt(sum(diag(X'*X))).
NORM(X,P) is available for matrix X only if P is 1, 2, inf or 'fro'.追问xiexie
追答不客气