필터 지우기
필터 지우기

Indexing

조회 수: 1 (최근 30일)
Sahab
Sahab 2011년 5월 7일
how can we know the index of this data? for example,i want know index of 0 and -30
x=[0,-10,-30,-30,-10,-20,-20,-0,-30]

채택된 답변

Paulo Silva
Paulo Silva 2011년 5월 7일
I0=find(x==0)
I30=find(x==-30)
  댓글 수: 1
Sahab
Sahab 2011년 5월 7일
wow so easy..thanks.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by