I want to use the L0 norm ?

41 visualizaciones (últimos 30 días)
Nora Khaled
Nora Khaled el 30 de Abr. de 2019
Respondida: Bruno Luong el 6 de Oct. de 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 ?

Respuesta aceptada

Nora Khaled
Nora Khaled el 1 de Mayo de 2019
I used sum(x>0).
  1 comentario
LANTIAN WEI
LANTIAN WEI el 6 de Oct. de 2020
Editada: LANTIAN WEI el 6 de Oct. de 2020
sum(abs(x)>0) will be better

Iniciar sesión para comentar.

Más respuestas (1)

Bruno Luong
Bruno Luong el 6 de Oct. de 2020

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by