How can eliminate features whose values are zero from array?

조회 수: 2 (최근 30일)
Awais Khan
Awais Khan 2020년 2월 13일
편집: KSSV 2020년 2월 13일
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에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by