How can eliminate features whose values are zero from array?

1 vue (au cours des 30 derniers jours)
Awais Khan
Awais Khan le 13 Fév 2020
Modifié(e) : KSSV le 13 Fév 2020
actually i am extracting lomo features, the resulted vector contain zero value as well, i want to elimintate these values from vector because i this way size of vector is also reduce and only useful remain in vector my code is given below suggest and share the code for it, thanks

Réponse acceptée

KSSV
KSSV le 13 Fév 2020
Modifié(e) : KSSV le 13 Fév 2020
If A is your array..you can remove zeros using:
A(A==0) = [] ;
Or
A = A(A~=0) ;

Plus de réponses (0)

Catégories

En savoir plus sur Numeric Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by