フィルターのクリア

I want to use the L0 norm ?

19 ビュー (過去 30 日間)
Nora Khaled
Nora Khaled 2019 年 4 月 30 日
回答済み: Bruno Luong 2020 年 10 月 6 日
Hi !
I was trying to use the function norm(v,p). but p takes value from 1 to inf.
How can I calulate the zero norm ?

採用された回答

Nora Khaled
Nora Khaled 2019 年 5 月 1 日
I used sum(x>0).
  1 件のコメント
LANTIAN WEI
LANTIAN WEI 2020 年 10 月 6 日
編集済み: LANTIAN WEI 2020 年 10 月 6 日
sum(abs(x)>0) will be better

サインインしてコメントする。

その他の回答 (1 件)

Bruno Luong
Bruno Luong 2020 年 10 月 6 日

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by