Norm of a vector
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I would like to ask if there is any simple way of calculating norm of vector rather than using built-in function norm?
0 件のコメント
回答 (1 件)
Roger Stafford
2014 年 2 月 12 日
For the "L2" norm of a vector v you can use
sqrt(sum(v.^2))
This is only one form of the 'norm' function. See the documentation for others.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!