Filter löschen
Filter löschen

I want to use the L0 norm ?

25 Ansichten (letzte 30 Tage)
Nora Khaled
Nora Khaled am 30 Apr. 2019
Beantwortet: Bruno Luong am 6 Okt. 2020
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 ?

Akzeptierte Antwort

Nora Khaled
Nora Khaled am 1 Mai 2019
I used sum(x>0).
  1 Kommentar
LANTIAN WEI
LANTIAN WEI am 6 Okt. 2020
Bearbeitet: LANTIAN WEI am 6 Okt. 2020
sum(abs(x)>0) will be better

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Bruno Luong
Bruno Luong am 6 Okt. 2020

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by