How can i choose specific elements from matrix ?

조회 수: 2 (최근 30일)
Gn Gnk
Gn Gnk 2020년 9월 6일
댓글: Mohammad Sami 2020년 9월 7일
Hello ,
i have a mat 3x3 like this one below:
H=[001;110;010]
I want to choose the elements that contain 2 or more zeros .
How can i implement this method on matlab code ?I tried using find but it didnt turn out into something .
Any ideas would be useful.
Thank you
  댓글 수: 4
Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020년 9월 6일
if true line at begining and 'end' at the end is not necessary
Mohammad Sami
Mohammad Sami 2020년 9월 7일
Yes. The two lines are added in when answering from mobile.

댓글을 달려면 로그인하십시오.

답변 (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