How can eliminate features whose values are zero from array?

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

采纳的回答

KSSV
KSSV 2020-2-13
编辑:KSSV 2020-2-13
If A is your array..you can remove zeros using:
A(A==0) = [] ;
Or
A = A(A~=0) ;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cartesian Coordinate System Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by