フィルターのクリア

Norm of a vector

1 回表示 (過去 30 日間)
Ayesha
Ayesha 2014 年 2 月 12 日
回答済み: Roger Stafford 2014 年 2 月 12 日
Hi,
I would like to ask if there is any simple way of calculating norm of vector rather than using built-in function norm?

回答 (1 件)

Roger Stafford
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.

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by