N = vecnorm(A)
N = vecnorm(A,p)
N = vecnorm(A,p,dim)
N = vecnorm(A) returns the 2-norm or Euclidean norm of A:
If A is a vector, then vecnorm returns the norm of the vector.
If A is a matrix, then vecnorm returns the norm of each column.
If A is a multidimensional array, then vecnorm returns the norm along the first array dimension whose size does not equal 1.
引用格式
Lateef Adewale Kareem (2024). VecNorm (https://www.mathworks.com/matlabcentral/fileexchange/74954-vecnorm), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2020a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |