I want to use the L0 norm ?

41 次查看(过去 30 天)
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 个)

Bruno Luong
Bruno Luong 2020-10-6

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by