Matlab中如何编程求解范数

发布网友 发布时间: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

追答不客气

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com