Where is the zero?
조회 수: 3 (최근 30일)
이전 댓글 표시
How to find the location of a zero (or a different number) in a vector ?
like :
a=[ 1 3 5 6 34 4 0 1 3 4 50]
=>7
댓글 수: 0
채택된 답변
madhan ravi
2018년 11월 9일
편집: madhan ravi
2018년 11월 9일
a=[ 1 3 5 6 34 4 0 1 3 4 50]
index=find(a==0)
댓글 수: 4
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!